0

Right now we have 2 servers.

  1. webserver + memcached
  2. mysql server

the mysql server is a new and a strong server and it is not being utilized fully. I was debating if I should migrate the memcached to the mysql server or If I should order a seperate box and keep all 3 seperate. Are there any best practices you guys can suggest as to how this should be implemented? webserver/memcached + mysql server or webserver + mysql/memcached server?

Thanks

2 Answers2

0

Better keep MySQL server for itself and give a MySQL daemon, say, 50-80% of available memory for buffers etc.

Having memcached hogging expensive memory from the MySQL daemon is pointless and essentially a waste of resources.

Well, it's all depends on your actual usage patterns. For example, if you have huge databases which does not ever able to fit into memory (you're disk bound) and/or heavy under-optimized queries you may actually benefit from having additional memcached instance running on the database server.

sanmai
  • 531
  • 5
  • 19
0

It's all a big "it depends". If you're not using all the resources on a box, you can stick multiple services on there without a problem. On the other hand, if you're planning on growth, it might be best to have a separate memcached box (or just stick more RAM in your webserver) so you don't get caught short when load picks up and you need to scramble (that is, unless you're far above average at capacity planning and can have a decent idea of when you'll need to scale up).

womble
  • 96,255
  • 29
  • 175
  • 230