|
Lines 63-68
Link Here
|
| 63 |
#define FED_MGR_STATE_FILE "fed_mgr_state" |
63 |
#define FED_MGR_STATE_FILE "fed_mgr_state" |
| 64 |
#define FED_MGR_CLUSTER_ID_BEGIN 26 |
64 |
#define FED_MGR_CLUSTER_ID_BEGIN 26 |
| 65 |
#define TEST_REMOTE_DEP_FREQ 30 /* seconds */ |
65 |
#define TEST_REMOTE_DEP_FREQ 30 /* seconds */ |
|
|
66 |
#define FED_MGR_WAIT_SIB_SYNC 60 /* seconds */ |
| 66 |
|
67 |
|
| 67 |
#define FED_SIBLING_BIT(x) ((uint64_t)1 << (x - 1)) |
68 |
#define FED_SIBLING_BIT(x) ((uint64_t)1 << (x - 1)) |
| 68 |
|
69 |
|
|
Lines 6139-6146
extern bool fed_mgr_sibs_synced()
Link Here
|
| 6139 |
|
6140 |
|
| 6140 |
if ((sib = list_find_first(fed_mgr_fed_rec->cluster_list, |
6141 |
if ((sib = list_find_first(fed_mgr_fed_rec->cluster_list, |
| 6141 |
_list_find_not_synced_sib, &dummy))) { |
6142 |
_list_find_not_synced_sib, &dummy))) { |
| 6142 |
info("%s: sibling %s up but not synced yet", |
6143 |
char *close_str = ""; |
| 6143 |
__func__, sib->name); |
6144 |
time_t now = time(NULL); |
|
|
6145 |
slurm_persist_conn_t *conn = sib->fed.send; |
| 6146 |
|
| 6147 |
xassert(conn); |
| 6148 |
|
| 6149 |
if ((now - conn->open_time) >= FED_MGR_WAIT_SIB_SYNC) { |
| 6150 |
close_str = ", closed connection due to timeout."; |
| 6151 |
_close_controller_conn(sib); |
| 6152 |
} |
| 6153 |
info("%s: sibling %s up but not synced yet%s", |
| 6154 |
__func__, sib->name, close_str); |
| 6144 |
return false; |
6155 |
return false; |
| 6145 |
} |
6156 |
} |
| 6146 |
|
6157 |
|
| 6147 |
- |
|
|