HA not working properly #3274
Replies: 11 comments 2 replies
-
|
I saw in the logs that HA is active when container is starting: But i don't see any trigger event in the log as its seems to be : When i update a page content i only see the following log on the concerned container: |
Beta Was this translation helpful? Give feedback.
-
|
is there any one implements HA and have this issue? |
Beta Was this translation helpful? Give feedback.
-
|
Hello is it possible to have some informations about HA and my problem? |
Beta Was this translation helpful? Give feedback.
-
|
I'm also having troubles with HA. I have a docker swarm stack configured to run 3 replicas of the app. During the install (when you enter admin password), I set the replica count to 1, and once the install is complete and I get the options Create Home Page or Administration, I then set the replica count back to 3. I see the log message about the HA process starting: But when I'm logged in as the admin and changing settings in the administration section, I get "unauthorized" banner warnings. It only works on every 3rd reload, when I assume it makes the request to the instance that I first logged in at. Can any of the code owners comment on how the replication works between instances? Is there a discovery process to find other instances? is it multicast? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Also having troubles with HA, pages not replicating properly when edited on one node. Just checking if there are any plans to improve it in the next major version? Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
I have same issue. 3 wikijs instance connect postgres patroni cluster via haproxy VIP |
Beta Was this translation helpful? Give feedback.
-
|
HA will be significantly improved in v3. You have to understand that HA was patched on after the fact in v2 so there are times where it can get out of sync or not properly receive cache purge commands. v3 is built from the ground up with HA in mind. In the meantime, restart your instances if you notice problems, as that should resolve pretty much all issues you may experience. |
Beta Was this translation helpful? Give feedback.
-
|
For anyone else that finds this discussion - I've seen that in NodeJS v12.x, the pub/sub works without issue (tested with WikiJS v2.5.285). Keeping that version of WikiJS but installing NodeJS >12 causes it to no longer work (tried on 14.x and 16.x, then 20.x with WikiJS v2.5.300). I'm not suggesting using NodeJS v12.x given how old and unsupported etc., but the difference seems to be related to after v12.x. |
Beta Was this translation helpful? Give feedback.
-
|
I definitely had the same problem. The admin interface seems to ping pong. I have two instances balanced. If I update a field and save it, it comes back original. Then a refresh, every other time it's updated. I have it load balanced with standard nginx. Waiting for V3 seems best at this point. Product is great! not trying to dig on of the developers. Thanks for a great product. |
Beta Was this translation helpful? Give feedback.
-
|
Had the same problem. Updating the pg-pubsub package version from 0.5.0 to 0.8.1 did the trick for me |
Beta Was this translation helpful? Give feedback.
-
|
It seems that we have the same issues on our 3 replicas HA setup. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello, i have deployed Wikijs on Openshift. HA_ACTIVE=1, using one node first and after settings upgrade to two nodes.
When i create a new page on master i can see this on slave after F5 and vice versa.
But when i edit a page on master, the update is not apply on slave and vice versa even after F5.
Did i missed something on my configuration? How to be sure that HA is well activated? Or is there any limitations due to the fact that file are locally rendered in container because if i go on the opposite node and i rerendered all pages the content is updated.
Host Info (please complete the following information):
OS: Linux - Alpine Linux (linux) 3.11.6 x64
Wiki.js version: 2.5.170
Database engine: postgres 9.6.10
Beta Was this translation helpful? Give feedback.
All reactions