В облачной среде лучше получить два отдельных экземпляра для mysql и php-приложения или получить один большой экземпляр [закрыто]

Мы используем облачную среду для наших веб-приложений, мне нужно мнение экспертов по размещению наших приложений.

наше приложение построено на php и mysql, я хочу знать, какой способ получения экземпляров является наиболее эффективным и / или экономичным.

случай 1: получить 1 большой экземпляр и настроить php и mysql на одном сервере. случай 2: получить два небольших экземпляра и настроить php и mysql отдельно.

ИЛИ

случай 1: получить 1 экземпляр xtra-large и настроить php и mysql на одном сервере. случай 2: получить два больших экземпляра и отдельно настроить php и mysql.

0
задан 13 March 2015 в 23:20
1 ответ

In terms of immediate performance gains, like gravyface mentioned, I wouldn't expect a huge gain, however separating the your database and application onto two servers gives you a large amount of flexibility when it comes to scaling your environment in the future, since you have the ability to grow resources for either the application or the database as needed.

Again, though, depending on how your application runs, there is a possibility that you'll take a hit by moving the database away from the application, and forcing the application to go out to the network.

All things being equal (and assuming the hit you take from latency isn't too large), my recommendation would be to separate them now rather than having to deal with doing so later, but again, depending on your requirements and expected growth, you might be fine with either setup.

If all your worried about is cost though - it just comes down to doing the math on Amazon's rates for whatever you mean by "xtra-large" and "small instances"

2
ответ дан 4 December 2019 в 14:25

Теги

Похожие вопросы