Data is shared among multiple servers.

how can the data generated on one server be shared with other servers? I am now in the background of the program is written in node js, are there any examples or ideas for reference?

Sep.02,2021
If

is a file, either multiple servers hang a shared disk or rsync Synchronize


this is not a language problem, is it? Let's talk about our multi-server strategy. At present, it is mainly for grayscale release to do multi-server load balancing. Pictures and some attachment resources use rsync as Synchronize strategy; DB is the master-slave copy of mysql.


multiple servers. Your application had better be stateless. There are two common problems: pictures, attachments and databases
1. How to share pictures, attachments, etc., use cloud storage, such as oss of Aliyun, or file storage can
2. The database is recommended to buy the cloud database directly. If you don't want to buy it, set up the database on a separate server and separate it from the application server

.
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-1e8a021-45ce8.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-1e8a021-45ce8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?