JCFS Server configuration

When you first start a server configuration file is automatically created if not found
#Sample Java Cluster File System configuration file

#Cluster configuration, this section defines the group
#it must be the same on client-side
cluster.udp.port=64000
cluster.udp.address=127.255.255.255

#Server configuration, this section defines this instance
server.tcp.port=64012
server.tcp.address=127.0.0.1
dir=store

# local RAM capacity of LRU cache (number of files)
cache.capacity=100

#period for background file distribution
distribute.period=60

#Default directory configuration
dir.default.defaultwritemode=besteffort
dir.default.replicate=1
dir.default.cache=false

#Example directory configuration (default transaction and replicate on 2 servers)
# this configution applies to trusted/*
dir.1.name=trusted
dir.1.defaultwritemode=transaction
dir.1.replicate=2
dir.1.cache=false

#Example directory configuration (default no transaction and do not replicate on other servers)
# this configution applies to unsafe/*
dir.2.name=unsafe
dir.2.defaultwritemode=besteffort
dir.2.replicate=1
dir.2.cache=false

#Example directory configuration (default no transaction and replicate on other servers in background)
dir.3.name=loadbalanced
dir.3.defaultwritemode=besteffort
dir.3.replicate=1
dir.3.cache=true
dir.3.distribute=true
#we want this directory replicate in background on at least 2 nodes
dir.3.distribute.on=2

            

Note: example files work on "localhost" (127.255.255.255 network).
in a real environment you should use your broadcast address (as 129.168.1.255) for UDP