0

I am new to magento stack, I have a requirement of deploying a magento based e-commerce in AWS. This site is expected to have 100,000 hits in first couple of months and within an year expected to get about a million hits/month.

Initially i thought of going with a EC2 t3.medium (2Core&4GB) for WEBSERVER and RDS db.t3.small(MySQL) for Database. So far it is fine.

My Query is, in magento docs it is specified that we need to have VARNISH and REDIS for getting better performance.

If i install varnish + Apache httpd + Redis in my EC2 will it be a overkill in t3.medium?

Say If i have a compute optimized instance c5.xlarge(4Core 10ECU 8GB), Is is fine to load these 3 in one monolithic server?

More over for better product searching, in docs it is specified to use ElastiSearch how we can configure this?

Please suggest me how i can architect this.

1 Answer 1

1

if you are really looking for best performance, then you need to install your stack on separate servers.

  • varnish
  • frontend
  • admin
  • redis ElastiCache service
  • ELK stack - use instance for better view and maintenance
  • RDS

having this you can easily add another instance when load goes high, in autoscaling group. then you dont care about traffic or sales.

5
  • If you want to make setup and usage of Varnish easier, I advise that you install one of the official Varnish Software images. See: aws.amazon.com/marketplace/… Commented Aug 10, 2020 at 7:18
  • @ThijsFeryn the link you posted is for paid image, this is very bad idea, always avoid vendor lock, install varnish as a package. varnish is free, why do i need to pay for it??
    – MagenX
    Commented Aug 10, 2020 at 9:21
  • these images are fully maintained, get automatic updates, they are tuned and have various components preset. It also allows you to use Varnish Enterprise, which has a lot more extra capabilities, without paying an upfront license. If you want to set it up yourself, I see no issue with that. If you want the people who develop Varnish, manage the image for you with the potential for extra capabilities, this can be a very compelling case. See docs.varnish-software.com/varnish-cache-plus for the enterprise features. Commented Aug 10, 2020 at 9:56
  • this is stupid idea, if you building ^ cloud infrastructure on your own...
    – MagenX
    Commented Aug 11, 2020 at 6:27
  • Depends on your use case, skill set, project timeline, budget ... Let's just say that the term "stupid" is relative. If it were "stupid", Cloud marketplaces would not exist, yet they do. I'm not saying this is the perfect solution for everyone, but it does serve a purpose. Let's just agree that there's not one truth. Commented Aug 11, 2020 at 8:52

Your Answer

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

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