Add consul & connect timeouts, report state before loading PGs, move init_primary to osd_cluster

This commit is contained in:
Vitaliy Filippov
2020-04-20 15:43:07 +03:00
parent 663153713b
commit ff38b464a5
7 changed files with 150 additions and 93 deletions
+3
View File
@@ -136,6 +136,7 @@ struct osd_client_t
int peer_fd;
int peer_state;
std::function<void(osd_num_t, int)> connect_callback;
int connect_timeout_id = -1;
osd_num_t osd_num = 0;
void *in_buf = NULL;
@@ -211,6 +212,8 @@ class osd_t
int autosync_interval = DEFAULT_AUTOSYNC_INTERVAL; // sync every 5 seconds
int recovery_queue_depth = DEFAULT_RECOVERY_QUEUE;
int peer_connect_interval = 5;
int http_request_timeout = 5;
int peer_connect_timeout = 5;
// peer OSDs