How to make services highly available

the company has a very basic, very important function. Now want to turn it into a service, so the question is how to make the service highly available. Because the foundation is important, it must not be hung up because it is important, and there must be no accident.


Policy:

  • just add a load balancer to the stateless service, but pay attention to the failure transfer of the load balancer itself.
  • stateful services should pay attention to redundant backups and consistency.

as for what specific tools to use, you need to combine your company's own technology stack to choose


highly available services must have the following characteristics:

1. Redundancy
2. Distributed
3. Load balancing
4. Service circuit breaker recovery


what platform? Nginx reverse proxy can be used for load balancing.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47bcf-27197.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47bcf-27197.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?