I have a NodeJS scaled application and would like to notify applications running on child gears that the cron of the head gear is running.
I need to execute a scheduled task synchronously on all users connected to WebSockets. So if the users are not connected on the same gear, I need to be able to tell the other gears to notify the users connected to them.
Is this possible to to make HAProxy redirect all WebSocket requests to the HEAD gear?
Is there no way to configure HAProxy to redirect to the HEAD gear depending on the port number ? Since WebSocket connections don't use the same port as HTTP on OpenShift, this might be the simplest solution.
- Openshift Online
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.