-
Notifications
You must be signed in to change notification settings - Fork 12
Pastry Node Settings
In order to edit Pastry node settings, you have to create a configuration file under one of the following paths:
- ./etc/pastry.properties
- ./config/pastry.properties
- ./properties/pastry.properties
Inside this config file you can specify the following parameters:
- pastStorageDiscSize = 52428800
This is the storage size used on your local hard drive to persist data from the network. The default value is 50 MB.
- pastMemoryCacheSize = 10485760
This is the cache size used from your local memory. If you want to speed up your node/network we suggest larger values here. The default value is about 10 MB.
- pastReplicas = 3
This is the number of copies created by the Pastry network for each stored object (Envelope). For very dynamic networks with frequent joins and leaves you may want to increase this value to ensure data persistency.
- pastry_socket_allow_loopback = false
Per default, Pastry tries to bind to the local address returned by the system. This is usually the loopback address. In case you only want bind to this, you have to set pastry_socket_allow_loopback to true. Otherwise Pastry returns an error message and binds to your internet address.
- socket_bindAddress = 0.0.0.0
- socket_bindAddress = hostname.example.org
- socket_bindAddress = 192.168.0.1
Warning: If you use the wildcard address 0.0.0.0 this node can't join any other network and no other node can connect to it either.
If you want your node to bind to the wildcard address you have to set ''socket_bindAddress = 0.0.0.0''. This will listen on all ip addresses assigned to your computer, including loopback (like 127.0.0.1), local (like 192.168.0.1) and public internet addresses. Otherwise the Pastry node will only listen to that specific ip address.