Hello,
I have an meteor app running on one EC2 Linux server (using MUP to deploy the app) and it works fine. I want to scale the app horizontally.
I tried to deploy the app on multiple servers(EC2), but to transfer the requests on all server equally I have to create Elastic Load Balancing (ELB).
To achieve this I followed this steps:-
-
Created an Load Balancer with HTTP/HTTPS protocols, for SSL I created an certificate through Certificate Manager.
-
Added my first running instance as Target to Load Balancer, but Target Group shows the target instance is in āunhealthyā state, although the site is accessible by the instanceās IP and appās URL.
Trying to access the app with ELBās generated DNS, but site is not reachable.
Also setup the apache2, and load-balancer forwards requests to connected servers on apache2, but after apace2 installation meteor app is not able to deploy. Iām getting error on port 80 as apache2 is already using it, I also tried with changing the port for apache2 server but it didnāt work.
Note:- Iām using CloudFlare in front of EC2 and I have create a CNAME record with provided items by ACM
Please suggest how I can horizontally scale my MeteorJS application on EC2 linux server.
Thanksā¦