} else {
ss << " cluster:\n";
ss << " id: " << monmap->get_fsid() << "\n";
-
+ if (is_stretch_mode()){
+ ss << " stretch_mode: ENABLED\n";
+ }
string health;
healthmon()->get_health_status(false, nullptr, &health,
"\n ", "\n ");
const auto mon_count = monmap->mon_info.size();
auto mnow = ceph::mono_clock::now();
ss << " mon: " << spacing << mon_count << " daemons, quorum "
- << quorum_names << " (age " << timespan_str(mnow - quorum_since) << ")";
+ << quorum_names << " (age " << timespan_str(mnow - quorum_since) << ")"
+ << " [leader: " << get_leader_name() << "]";
if (quorum_names.size() != mon_count) {
std::list<std::string> out_of_q;
for (size_t i = 0; i < monmap->ranks.size(); ++i) {