-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA - MongoDB and RocketChat Setup #4299
Comments
I now tested to add a third node.. just to be sure the mongodb replicaset is correctly working because i read here: https://docs.mongodb.com/manual/core/replica-set-architecture-three-members/ that the minimum is three nodes. Same problem. I am with my Smartphone from the internet on node1 and from internal on node3. RC needs a refresh to show all messages. (Via Source-IP LB) |
So from the look of this... you have two mongodb servers... but doesn't sound like they have been clustered together properly. Start with a mongodb cluster... get it going then move to scaling Rocket.Chat. Check out this for mongodb cluster with docker: https://medium.com/@gargar454/deploy-a-mongodb-cluster-in-steps-9-using-docker-49205e231319#.egh4k3t96 Also tons of resources out there on doing this. |
Please also see #4019 (comment) |
@geekgonecrazy @engelgabriel @rodrigok I tried to set the env |
Ah, new error messages! I have now this error in my logs when the instance try to talk to each other:
|
Did you try running the develop branch? |
@engelgabriel Nope. I run the latest docker container in production. But.. SUCCESS! After the addition from @rodrigok to set the env |
@geekgonecrazy @engelgabriel would this be the best place to document my testing and deployment or soon to be deployed to production. Or how would you like for me to do this? Is there a template to follow etc.? It might be helpful for those who are deploying HA RC deployments. I'm still doing some automated testing which I would love to get some feedback on. I'm not using docker in this implementation of RC. |
@drickerusa I've open a ticket on our documentation repo. This is where i've been trying to collect info and do a write up. RocketChat/docs-old#87 If docker specific you could document there or create another ticket on that repo. I just started there because Its easier to find. But its up to you 😄 |
Your Rocket.Chat version: latest (0.39.0)
Hey guys,
i create a 2 Node setup with docker and a openstack HA proxy in front of these two.
The mongodb is a docker-container on both nodes in a replicaset. I created all users (admins, rocket (the user for rocket.chat, oplogger)
Now, i create rocket.chat docker containers with the following docker-compose config:
My issue is now, the messages send are not displayed directly if you are connected to a different node, the user have to refresh the browser to see all other messages send to the other node. I checked https://github.com/RocketChat/Rocket.Chat.Docs/issues/68 already, but didnt get a hint to the right step to accomplish this.
I have tested the access without the load-balancer in front:
-> message not shown on node2 until i reload the site in browser2
The websocket are established correctly, too.
Anyone have a suggestion?
Edit: I checked also this documentation: https://rocket.chat/docs/installation/manual-installation/ubuntu/ -> no success
The text was updated successfully, but these errors were encountered: