0.29.7
This commit is contained in:
1 parent
ad95bfb050
commit
1431dd47f0
62 files changed
+1360
-198
No files matched your search
@@ -6,13 +6,14 @@ impl Pool {
|
||||
.map(|m| {
|
||||
let h = lock(&m.state.health);
|
||||
let failure = lock(&m.state.last_failure);
|
||||
let member_health = self.settings.health_for(&m.definition);
|
||||
let status = if !m.definition.enabled {
|
||||
"disabled"
|
||||
} else if m.definition.drain {
|
||||
"draining"
|
||||
} else if h.healthy {
|
||||
"up"
|
||||
} else if !h.checked && self.settings.health_check.mode != HealthMode::Off {
|
||||
} else if !h.checked && member_health.mode != HealthMode::Off {
|
||||
"checking"
|
||||
} else {
|
||||
"down"
|
||||
@@ -27,6 +28,8 @@ impl Pool {
|
||||
item.insert("url".into(), json!(m.definition.url));
|
||||
item.insert("weight".into(), json!(m.definition.weight));
|
||||
item.insert("backup".into(), json!(m.definition.backup));
|
||||
item.insert("health_check_enabled".into(), json!(m.definition.health_check_enabled));
|
||||
item.insert("health_mode".into(), json!(member_health.mode));
|
||||
item.insert(
|
||||
"max_concurrent_requests".into(),
|
||||
json!(m.definition.max_concurrent_requests),
|
||||
|
||||
Reference in new issue
Block a user