diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-08 09:57:46 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-08 09:57:46 -0800 |
commit | a963810e021c4e76d7f4e8958ff07a44eb07ed69 (patch) | |
tree | 4375a459f8225b5547477eb17baaeee7a8162565 /node | |
parent | 69b1da2e1d14f95629c5ae9442d6797a86667c61 (diff) | |
download | infinitytier-a963810e021c4e76d7f4e8958ff07a44eb07ed69.tar.gz infinitytier-a963810e021c4e76d7f4e8958ff07a44eb07ed69.zip |
Tweak a few cluster params for higher perf / lower initial setup latency.
Diffstat (limited to 'node')
-rw-r--r-- | node/Cluster.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/node/Cluster.hpp b/node/Cluster.hpp index e21d6020..dafbf425 100644 --- a/node/Cluster.hpp +++ b/node/Cluster.hpp @@ -47,22 +47,22 @@ /** * Desired period between doPeriodicTasks() in milliseconds */ -#define ZT_CLUSTER_PERIODIC_TASK_PERIOD 50 +#define ZT_CLUSTER_PERIODIC_TASK_PERIOD 20 /** * How often to flush outgoing message queues (maximum interval) */ -#define ZT_CLUSTER_FLUSH_PERIOD 100 +#define ZT_CLUSTER_FLUSH_PERIOD ZT_CLUSTER_PERIODIC_TASK_PERIOD /** * Maximum number of queued outgoing packets per sender address */ -#define ZT_CLUSTER_MAX_QUEUE_PER_SENDER 8 +#define ZT_CLUSTER_MAX_QUEUE_PER_SENDER 16 /** * Expiration time for send queue entries */ -#define ZT_CLUSTER_QUEUE_EXPIRATION 5000 +#define ZT_CLUSTER_QUEUE_EXPIRATION 3000 /** * Chunk size for allocating queue entries @@ -85,11 +85,8 @@ /** * Max data per queue entry - * - * If we ever support larger transport MTUs this must be increased. The plus - * 16 is just a small margin and has no special meaning. */ -#define ZT_CLUSTER_SEND_QUEUE_DATA_MAX (ZT_UDP_DEFAULT_PAYLOAD_MTU + 16) +#define ZT_CLUSTER_SEND_QUEUE_DATA_MAX 1500 namespace ZeroTier { |