Benefits of multiple memcached instances

前端 未结 3 1228
时光说笑
时光说笑 2021-01-18 11:06

Is there any difference between having 4 .5GB memcache servers running or one 2GB instance?

Does running multiple instances offer any benifits?

3条回答
  •  星月不相逢
    2021-01-18 11:56

    High availability is nice, and memcached will automatically distribute your cache across the 4 servers. If one of those servers dies for some reason, you can handle that error by either just continuing as if the cache was blank, redirecting to a different server, or any sort of custom error handling you want. If your 1x 2gb server dies, then your options are pretty limited.

    The important thing to remember is that you do not have 4 copies of your cache, it is 1 cache, split amongst the 4 servers.

    The only downside is that it's easier to run out of 4x .5 than it is to run out of 1x 2gb memory.

提交回复
热议问题