|
MongoDB, on that same host, has no qualms connecting to replicaset members using hostnames all the way up 255 chars:
{ "ok" : 1 }
|
> rs.status()
|
{
|
"set" : "foobar",
|
"date" : ISODate("2017-02-10T18:20:46.486Z"),
|
"myState" : 1,
|
"term" : NumberLong(1),
|
"heartbeatIntervalMillis" : NumberLong(2000),
|
"optimes" : {
|
"lastCommittedOpTime" : {
|
"ts" : Timestamp(1486750835, 1),
|
"t" : NumberLong(1)
|
},
|
"appliedOpTime" : {
|
"ts" : Timestamp(1486750845, 1),
|
"t" : NumberLong(1)
|
},
|
"durableOpTime" : {
|
"ts" : Timestamp(1486750845, 1),
|
"t" : NumberLong(1)
|
}
|
},
|
"members" : [
|
{
|
"_id" : 1,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.vcap.me:27017",
|
"health" : 1,
|
"state" : 1,
|
"stateStr" : "PRIMARY",
|
"uptime" : 492,
|
"optime" : {
|
"ts" : Timestamp(1486750845, 1),
|
"t" : NumberLong(1)
|
},
|
"optimeDate" : ISODate("2017-02-10T18:20:45Z"),
|
"electionTime" : Timestamp(1486750649, 1),
|
"electionDate" : ISODate("2017-02-10T18:17:29Z"),
|
"configVersion" : 5,
|
"self" : true
|
},
|
{
|
"_id" : 2,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.vcap.me:27019",
|
"health" : 1,
|
"state" : 2,
|
"stateStr" : "SECONDARY",
|
"uptime" : 207,
|
"optime" : {
|
"ts" : Timestamp(1486750835, 1),
|
"t" : NumberLong(1)
|
},
|
"optimeDurable" : {
|
"ts" : Timestamp(1486750835, 1),
|
"t" : NumberLong(1)
|
},
|
"optimeDate" : ISODate("2017-02-10T18:20:35Z"),
|
"optimeDurableDate" : ISODate("2017-02-10T18:20:35Z"),
|
"lastHeartbeat" : ISODate("2017-02-10T18:20:45.021Z"),
|
"lastHeartbeatRecv" : ISODate("2017-02-10T18:20:45.277Z"),
|
"pingMs" : NumberLong(0),
|
"configVersion" : 4
|
},
|
{
|
"_id" : 3,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.vcap.me:27018",
|
"health" : 1,
|
"state" : 2,
|
"stateStr" : "SECONDARY",
|
"uptime" : 133,
|
"optime" : {
|
"ts" : Timestamp(1486750835, 1),
|
"t" : NumberLong(1)
|
},
|
"optimeDurable" : {
|
"ts" : Timestamp(1486750835, 1),
|
"t" : NumberLong(1)
|
},
|
"optimeDate" : ISODate("2017-02-10T18:20:35Z"),
|
"optimeDurableDate" : ISODate("2017-02-10T18:20:35Z"),
|
"lastHeartbeat" : ISODate("2017-02-10T18:20:45.021Z"),
|
"lastHeartbeatRecv" : ISODate("2017-02-10T18:20:45.277Z"),
|
"pingMs" : NumberLong(0),
|
"configVersion" : 4
|
},
|
{
|
"_id" : 4,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghi.vcap.me:27020",
|
"health" : 0,
|
"state" : 8,
|
"stateStr" : "(not reachable/healthy)",
|
"uptime" : 0,
|
"optime" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDurable" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
|
"optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
|
"lastHeartbeat" : ISODate("2017-02-10T18:20:45.028Z"),
|
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
|
"pingMs" : NumberLong(0),
|
"lastHeartbeatMessage" : "HostUnreachable",
|
"configVersion" : -1
|
},
|
{
|
"_id" : 5,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefg.vcap.me:27020",
|
"health" : 0,
|
"state" : 8,
|
"stateStr" : "(not reachable/healthy)",
|
"uptime" : 0,
|
"optime" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDurable" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
|
"optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
|
"lastHeartbeat" : ISODate("2017-02-10T18:20:45.028Z"),
|
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
|
"pingMs" : NumberLong(0),
|
"lastHeartbeatMessage" : "HostUnreachable",
|
"configVersion" : -1
|
},
|
{
|
"_id" : 6,
|
"name" : "abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.a0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcde.vcap.me:27020",
|
"health" : 1,
|
"state" : 0,
|
"stateStr" : "STARTUP",
|
"uptime" : 1,
|
"optime" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDurable" : {
|
"ts" : Timestamp(0, 0),
|
"t" : NumberLong(-1)
|
},
|
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
|
"optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
|
"lastHeartbeat" : ISODate("2017-02-10T18:20:45.021Z"),
|
"lastHeartbeatRecv" : ISODate("2017-02-10T18:20:45.440Z"),
|
"pingMs" : NumberLong(0),
|
"configVersion" : -2
|
}
|
],
|
"ok" : 1
|
}
|
|