0

I have set setup of magento on multi server in AWS with loadbalancer - when there is cpu load of more than 80 percent new server is auto created with Base server images on specific time

I am facing below issue and need help with solutions

1: When new autoscaled server is launched code of that is not updated one like if we modify some code it is not there in new autoscaled server -- how to solve this issue

a: Will CI/CD fix this issue ? , how will CI/ CD take care of dynamically created generated folder b: how can i show latest css files in pub static folder

please help with above should we go with NFS ? or mount bucket as alternative to CI/CD

2 Answers 2

0

Yes you need to use NFS for file sharing. so whenever there is new server will create it will use files from nfs server.

1
  • can you help with what all directory should be used for NFS , will NFS increase any latency or performance issue
    – gaurav
    May 27, 2022 at 12:05
0

You need to share some content between ec2 nodes Simple solution is shared volumes

You need to link var and pub/media directories to attached volume on each node

Better to support actual codebase on all nodes each deploy

I recommend to use Redis for cache and sessions. You can create Redis instance in AWS.

Don't forget to actualize for each node or share app/etc files

7
  • do you mean nFS storage as shared storage ?
    – gaurav
    Jun 3, 2022 at 13:10
  • In this case it's a solution called AWS Volume which you can manage in AWS console. Jun 3, 2022 at 13:22
  • we are using gcp can you tell what is it called in GCP
    – gaurav
    Jun 3, 2022 at 13:38
  • @VictorTihonchuk With use of either AWS Volume or Persistent Disk mean we are still at a possible 'single point of failure' problem for the application? When the SHARED ANYTHING is not available? Jun 28, 2022 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.