status is normal
[root@graylog01 ~]# mongosh
Current Mongosh Log ID: 65ab59d7bf76711b1e33e8ca
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.1
Using MongoDB: 6.0.12
Using Mongosh: 2.1.1
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
------
The server generated these startup warnings when booting
2024-01-18T16:37:56.853+05:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
2024-01-18T16:37:56.853+05:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
------
rs01 [direct: primary] test> rs.status()
{
set: 'rs01',
date: ISODate('2024-01-20T05:27:54.955Z'),
myState: 1,
term: Long('1'),
syncSourceHost: '',
syncSourceId: -1,
heartbeatIntervalMillis: Long('2000'),
majorityVoteCount: 2,
writeMajorityCount: 2,
votingMembersCount: 3,
writableVotingMembersCount: 3,
optimes: {
lastCommittedOpTime: { ts: Timestamp({ t: 1705728474, i: 12 }), t: Long('1') },
lastCommittedWallTime: ISODate('2024-01-20T05:27:54.902Z'),
readConcernMajorityOpTime: { ts: Timestamp({ t: 1705728474, i: 12 }), t: Long('1') },
appliedOpTime: { ts: Timestamp({ t: 1705728474, i: 12 }), t: Long('1') },
durableOpTime: { ts: Timestamp({ t: 1705728474, i: 12 }), t: Long('1') },
lastAppliedWallTime: ISODate('2024-01-20T05:27:54.902Z'),
lastDurableWallTime: ISODate('2024-01-20T05:27:54.902Z')
},
lastStableRecoveryTimestamp: Timestamp({ t: 1705728437, i: 13 }),
electionCandidateMetrics: {
lastElectionReason: 'electionTimeout',
lastElectionDate: ISODate('2024-01-18T11:39:01.244Z'),
electionTerm: Long('1'),
lastCommittedOpTimeAtElection: { ts: Timestamp({ t: 1705577940, i: 1 }), t: Long('-1') },
lastSeenOpTimeAtElection: { ts: Timestamp({ t: 1705577940, i: 1 }), t: Long('-1') },
numVotesNeeded: 1,
priorityAtElection: 1,
electionTimeoutMillis: Long('10000'),
newTermStartDate: ISODate('2024-01-18T11:39:01.540Z'),
wMajorityWriteAvailabilityDate: ISODate('2024-01-18T11:39:01.721Z')
},
members: [
{
_id: 0,
name: '192.168.60.81:27017',
health: 1,
state: 1,
stateStr: 'PRIMARY',
uptime: 150600,
optime: { ts: Timestamp({ t: 1705728474, i: 12 }), t: Long('1') },
optimeDate: ISODate('2024-01-20T05:27:54.000Z'),
lastAppliedWallTime: ISODate('2024-01-20T05:27:54.902Z'),
lastDurableWallTime: ISODate('2024-01-20T05:27:54.902Z'),
syncSourceHost: '',
syncSourceId: -1,
infoMessage: '',
electionTime: Timestamp({ t: 1705577941, i: 1 }),
electionDate: ISODate('2024-01-18T11:39:01.000Z'),
configVersion: 14,
configTerm: 1,
self: true,
lastHeartbeatMessage: ''
},
{
_id: 3,
name: '192.168.62.115:27017',
health: 1,
state: 2,
stateStr: 'SECONDARY',
uptime: 132865,
optime: { ts: Timestamp({ t: 1705728474, i: 4 }), t: Long('1') },
optimeDurable: { ts: Timestamp({ t: 1705728474, i: 4 }), t: Long('1') },
optimeDate: ISODate('2024-01-20T05:27:54.000Z'),
optimeDurableDate: ISODate('2024-01-20T05:27:54.000Z'),
lastAppliedWallTime: ISODate('2024-01-20T05:27:54.902Z'),
lastDurableWallTime: ISODate('2024-01-20T05:27:54.902Z'),
lastHeartbeat: ISODate('2024-01-20T05:27:54.259Z'),
lastHeartbeatRecv: ISODate('2024-01-20T05:27:54.238Z'),
pingMs: Long('1'),
lastHeartbeatMessage: '',
syncSourceHost: '192.168.60.81:27017',
syncSourceId: 0,
infoMessage: '',
configVersion: 14,
configTerm: 1
},
{
_id: 4,
name: '192.168.25.81:27017',
health: 1,
state: 2,
stateStr: 'SECONDARY',
uptime: 91091,
optime: { ts: Timestamp({ t: 1705728474, i: 8 }), t: Long('1') },
optimeDurable: { ts: Timestamp({ t: 1705728474, i: 8 }), t: Long('1') },
optimeDate: ISODate('2024-01-20T05:27:54.000Z'),
optimeDurableDate: ISODate('2024-01-20T05:27:54.000Z'),
lastAppliedWallTime: ISODate('2024-01-20T05:27:54.832Z'),
lastDurableWallTime: ISODate('2024-01-20T05:27:54.393Z'),
lastHeartbeat: ISODate('2024-01-20T05:27:54.885Z'),
lastHeartbeatRecv: ISODate('2024-01-20T05:27:54.307Z'),
pingMs: Long('84'),
lastHeartbeatMessage: '',
syncSourceHost: '192.168.60.81:27017',
syncSourceId: 0,
infoMessage: '',
configVersion: 14,
configTerm: 1
}
],
ok: 1,
'$clusterTime': {
clusterTime: Timestamp({ t: 1705728474, i: 12 }),
signature: {
hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),
keyId: Long('0')
}
},
operationTime: Timestamp({ t: 1705728474, i: 12 })
}
I configured opensearch with TLS
cluster.name: graylog
node.name: opensearch01kar
path.data: /data/opensearch/db
path.logs: /data/opensearch/log
network.host: 0.0.0.0
discovery.seed_hosts: ["192.168.25.82", "192.168.60.80", "192.168.70.80"]
cluster.initial_cluster_manager_nodes: ["192.168.60.80"]
root@opensearch01kar:~# curl -XGET https://opensearch01kar.sicim.eu:9200/_cluster/health -u "admin:FASFsfa0514"
{"cluster_name":"graylog","status":"green","timed_out":false,"number_of_nodes":3,"number_of_data_nodes":3,"discovered_master":true,"discovered_cluster_manager":true,"active_primary_shards":9,"active_shards":18,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":100.0}