문제

I am creating different service on the single memcached server as

sc create "Memcached11211" binPath= "C:\memcached\memcached.exe -d runservice -p 11211"
DisplayName= "Memcached11211" start= auto

sc create "Memcached11212" binPath= "C:\memcached\memcached.exe -d runservice -p 11212"`  
DisplayName= "Memcached11212" start= auto

Will that cause performance overhead?

도움이 되었습니까?

해결책

the performance nearly the same, with some minor different. the bottleneck of memcached is usually NetworkIO, if you deploy multi service on the single server, that's no difference.

but there are some good stuff if you has multi service, for example:if one of the memcached service crash, you just lose half of the cached data, and your db will not carry full load for your lost. and if you plan to build a memcached cluster, this is a good way for your code to get ready.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top