cluster Haproxy configuration #5720
Replies: 4 comments 3 replies
-
If you are using standalone instance and want to convert to a cluster mode, simply use the following command:
Or if with credentials to MongoDB you an use:
Please review the documentation here https://antmedia.io/docs/guides/clustering-and-scaling/manual-configuration/cluster-installation/#install-the-origin-and-edge-groups |
Beta Was this translation helpful? Give feedback.
-
i understand, then when i server reached capacity will go to second as
database is shared with al ams instances, right?
El mié, 25 oct 2023 a las 7:18, timantmedia ***@***.***>)
escribió:
… In Haproxy, there is no edge or origin defined. They are going through the
same backend instances.
A single entry point:
frontend frontend_https
bind *:443 ssl crt /etc/haproxy/certs/{DOMAIN_NAME}.pem
bind *:5443 ssl crt /etc/haproxy/certs/{DOMAIN_NAME}.pem
reqadd X-Forwarded-Proto:\ https
default_backend backend_http
load balancing multiple instances:
backend backend_http
leastconn
server ams1 {WRITE_YOUR_FIRST_AMS_SERVER_IP_ADDRESS}:5080
server ams2 {WRITE_YOUR_SECOND_AMS_SERVER_IP_ADDRESS}:5080
—
Reply to this email directly, view it on GitHub
<#5720 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATZCTME5J67GE4QAXMMNRKLYBEGT7AVCNFSM6AAAAAA6MKOV3WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOBRGM4TC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
with these configuration i have to put domain from principal server where i
publish or from load balancer server?
frontend frontend_https
bind *:443 ssl crt /etc/haproxy/certs/{DOMAIN_NAME}.pem
bind *:5443 ssl crt /etc/haproxy/certs/{DOMAIN_NAME}.pem
reqadd X-Forwarded-Proto:\ https
default_backend backend_http
El jue, 26 oct 2023 a las 4:36, timantmedia ***@***.***>)
escribió:
… In this configuration, the load is balanced between the ams instances
defined in backend backend_http you'll need to add more instances if the
amount of instances you have does not handle the load.
—
Reply to this email directly, view it on GitHub
<#5720 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATZCTMAKXTO6D33I2XQ5GMTYBI4L5AVCNFSM6AAAAAA6MKOV3WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOJRGI3DI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi @nocpbxchap Here is a sample configuration, I have configured it for you :) I have not tested yet, FYI
|
Beta Was this translation helpful? Give feedback.
-
following these guide how we set origin and edge on configuration
https://antmedia.io/docs/guides/clustering-and-scaling/load-balancing/load-balancer-with-haproxy-ssl-termination/
also if using standalone database how we import to cluster database mongo?
regards
Beta Was this translation helpful? Give feedback.
All reactions