After the openvidu server failed to communicate with one of the KMS servers, while trying several times to start the KMS server, a nodecrash occurred in the KMS server.
However, like the setting information above, I declared "OPENVIDU_PRO_CLUSTER_MEDIA_NODES=3 ", but only two media servers were alive in the end.
It is understandable to try restarting the KMS that has a problem several times, but if the KMS server is finally shut down, is it normal to automatically create another new KMS instance?
I and my team look forward to your quick response and your prosperity.
What is the problem exactly? If I understood correctly, your stack was configured to have 3 media nodes, but one failed, and then OpenVidu created another one and destroyed the not healthy one.
Hello
What you say should be normal. However, several attempts were made to automatically create a new KMS server, but were unsuccessful. So there were only 2 kms in Healthy state.
Thanks for your quick response…
my region is on AP-NORTHEAST-2 (SEOUL)
Server(OVP) side logs are followed
openvidu-openvidu-server-1 | [ERROR] 2022-09-19 03:09:04,883 [Timer-2] io.openvidu.server.pro.infrastructure.metrics.MediaNodesCpuLoadCollector - Exception collecting CPU load of Media Node media_i-0c2d51e61afe822a8: Connect to 172.29.0.25:3000 [/172.29.0.25] failed: connect timed out
OPENVIDU_PRO_CLUSTER_MEDIA_NODES is the initial number of media nodes. If some of the nodes fails, the number will not increase to that specified number.
For this behavior you want, you need to set up these environment variables:
You are right, @cruizba .
Configuration parameter OPENVIDU_PRO_CLUSTER_MEDIA_NODES only indicates how many Media Nodes you want your cluster to have on start up. This is taken directly from OpenVidu docs:
So this property ensures that after launching your OpenVidu cluster in AWS, the number of Media Nodes will be exactly that. But it does not guarantee that new Media Nodes will be automatically added upon a Media Node crash. You must add them manually: Scalability - OpenVidu Docs
In order to let OpenVidu launch new Media Nodes in the case of a crash, you will have to enable the autoscaling feature just as @cruizba said.