Interview Series 20 production environment is how to deploy redis

redis cluster, 10 machine, 5 main machines deployed redis example, additional 5 machines deployed from the redis example, each linked to a primary instance from example, five nodes provide external reader service, each node qps peak read and write may be up to 50,000 per second, up to five machines is 250,000 read and write requests / s.

 

What machine configuration? 32G memory +8 core CPU + 1T disk, but the process is assigned to redis 10g memory, general production line, redis memory as not more than 10g, more than 10g can be problematic.

 

5 machines provide external reading and writing, a total of 50g memory.

 

Because each of the main examples are hung from an instance, it is highly available, any one of the primary instance of downtime will automatically failover, redis will automatically become the primary instance from the instance to continue to provide literacy services

 

You write to the memory of what data? Each data size is how much? Product data, each data is 10kb. 100 data 1mb, 10 million data is 1g. Permanent memory is 2 million product data, take up memory is 20g, 50% less than the total memory only.

 

Currently the peak of requests per second is the amount of about 3500

 

For example, we now, large companies, in fact, infrastructure team, will be responsible for the operation and maintenance cache cluster

Guess you like

Origin www.cnblogs.com/xiufengchen/p/11259186.html