In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what is the method of memcached cluster multi-tenancy". In the daily operation, I believe that many people have doubts about the method of memcached cluster multi-tenancy. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "what is the method of memcached cluster multi-tenancy"! Next, please follow the editor to study!
Because memcached does not support multi-tenancy, does not support multiple users to use the same cache, and there is no interaction between memcached, custom development of memcached multi-tenant cluster has become a necessary choice. Since there is no good memcahced cluster scheme supporting multi-tenancy on the network, I have developed a memcahced cluster that supports username and password.
Architecture description:
McProxy: the entrance to all external requests. Users access the entrance to the memcached cluster. A routing table map is maintained in McProxy. The routing table structure is as follows: one namespace-> a memcached cluster. McProxy uses namespace (user name) to distinguish different clusters.
Config Servers: Config servers machines are divided into three roles: Master, Slave and Heatbeat. Heatbeat is one of the Slave machines. Slave machines check each other's health status. The Heatbeat machine periodically detects the status of the Master machine, and if the Heatbeat machine down other slave machines adopt preemptive mode, self-declare the Heatbeat role and start to re-detect the Master machine.
Master machines maintain the routing tables of all memcached clusters and McProxy. Master will regularly check the status of all memcached clusters. Server down,Master machines with memcached clusters will notify all McProxy to update the routing table. If the Master machine down, the Heatbeat machine will designate another valid Slave machine, call itself the Master role, and begin to assume the work of the Master machine
Memcached Cluster: Memcached cluster machines will not communicate with each other, but there will also be a role of Master multiple Slave. When there is a write request, McProxy first writes the data to the memcached Master machine, and then concurrently backs up the data to other memcached Slave machines. When there is a read request, the hash consistency algorithm is adopted, and a cache is randomly selected to read the data.
The simplicity of the architecture is as follows:
At this point, the study on "what is the method of memcached cluster multi-tenancy" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 288
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.