From abb54ea3342748b7c4589cd12a821957e1b58238 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 8 Nov 2017 00:16:18 +0100 Subject: [SERVER] altservers: Tweak, cleanup, refactor, rename --- src/serverconfig.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/serverconfig.h') diff --git a/src/serverconfig.h b/src/serverconfig.h index 77268cb..5e5afd9 100644 --- a/src/serverconfig.h +++ b/src/serverconfig.h @@ -3,15 +3,18 @@ #include "config.h" -// +++++ Performance related +// +++++ Performance/memory related #define SERVER_MAX_CLIENTS 4000 #define SERVER_MAX_IMAGES 5000 -#define SERVER_MAX_ALTS 250 -#define SERVER_MAX_UPLINK_FAILS 8 // How many times may a server fail until it is considered bad -#define SERVER_BAD_UPLINK_IGNORE 120 // How many seconds is a server considered bad? +#define SERVER_MAX_ALTS 100 +// +++++ Uplink handling (proxy mode) +#define SERVER_UPLINK_FAIL_INCREASE 5 // On server failure, increase numFails by this value +#define SERVER_BAD_UPLINK_THRES 40 // Thresold for numFails at which we ignore a server for the time span below +#define SERVER_BAD_UPLINK_IGNORE 180 // How many seconds is a server ignored #define SERVER_MAX_UPLINK_QUEUE 1500 // Maximum number of queued requests per uplink #define SERVER_UPLINK_QUEUELEN_THRES 900 // Threshold where we start dropping incoming clients -#define SERVER_MAX_PENDING_ALT_CHECKS 50 +#define SERVER_MAX_PENDING_ALT_CHECKS 50 // Length of queue for pending alt checks requested by uplinks + #define SERVER_CACHE_MAP_SAVE_INTERVAL 90 // Time in ms to wait for a read/write call to complete on an uplink connection -- cgit v1.2.3-55-g7522