[tcaplus DB knowledge base] tcaplus DB high availability deployment

Time:2021-8-27

Due to the possibility of accidents such as machine failure, the high availability of database has always attracted much attention. As a NoSQL database, tcallusdb provides scalability and high availability in cross data center scenarios. The purpose of this document is to introduce the deployment scheme of tcallusdb in the same city’s dual data centers.

Principle of high availability technology of tcallusdb

Each service module of tcaplus supports high availability deployment

The following are introduced one by one:

  1. MySQL: use the native MySQL Cluster or MySQL LDB of the cloud provider. It is recommended to configure domain name access and multiple RS modes behind it

    1. (deployment method: the deployment method can be referenced online)
  2. OMS: support the establishment of multiple OMS management terminals, which are equal and do not affect each other

    1. (deployment method: after adding MySQL permissions to the new machine, install xampp, unpack the OMS package, and execute. / install_ Web.sh passes in MySQL connection information as a parameter. After installation, delete the initial page of / data / tcaplus / tcapops / www / APP / install.php, and you can use it normally.)
  3. Tcapcenter: each cluster (set) has a servingcenter, which supports the deployment of standbycenter and monitors the status of multiple servingcenters in a one to many manner. Once it is confirmed that the servingcenter fails and is unserviceable, the role switch can be completed within a few minutes to take over the subordinate processes of the original servingcenter

    1. (deployment method: after adding MySQL permissions to the new machine, first register the new cluster from cluster maintenance, and then use the document “install stanbycenter”)
    2. [tcaplus DB knowledge base] tcaplus DB high availability deployment
    3. [tcaplus DB knowledge base] tcaplus DB high availability deployment
  4. Tcapdir: each cluster (set) shall deploy at least two tcapdir. Each tcapdir knows the complete list of directory servers. When the connected tcapdir fails, the client will automatically select other surviving tcapdir from the list to connect, so as to facilitate the daily process to expand and shrink the capacity

    1. (deployment method: first give MySQL permission to tcapdir, and then initialize tcapdir into the pool)
    2. [tcaplus DB knowledge base] tcaplus DB high availability deployment, fill in the login information and put the machine into the pool. Refer to the chapter on putting the machine on the shelf for details
    3. Click directory services[tcaplus DB knowledge base] tcaplus DB high availability deployment
    4. [tcaplus DB knowledge base] tcaplus DB high availability deployment
    5. Click “add directory service”
    6. [tcaplus DB knowledge base] tcaplus DB high availability deployment
    7. Click Submit. After the installation is completed, tcapdir completes the capacity expansion
  5. Tcapsvr: the storage layer is deployed in a dual node mode of one master and one slave (hereinafter referred to as master slave). Generally, the master undertakes the DB read-write request. When the master fails abnormally, the proxy will soon know the problem (internal statistics, within a certain period of time, the request is sent to the master through the proxy and no response is received), so it notifies the center to make a unified decision, When the handover conditions are met, slave will be notified to switch its role to master and adjust the routing table. After the handover, tcaproxy will be notified to update the master information

    1. (deployment method: refer to storage layer expansion and contraction)
  6. Tcapproxy: at least 2 tcapproxys are deployed in each game zone to achieve request balancing at the client. Capacity expansion of tcapproxy can enhance the throughput. When the tcapproxy process fails and is abnormal, the center senses that the heartbeat is interrupted, and will notify the client to update the proxy list through tcapdir (excluding abnormal processes)

    1. (deployment method: refer to the expansion and contraction capacity of the access layer)
  7. Tcapdb: at least 2 tcapdbs are deployed for each service (APP). Tcapsvr will achieve request balance from multiple tcapdbs when forwarding cache data. Capacity expansion of tcapdb can enhance throughput

    1. (deployment method: refer to buffer layer expansion and contraction)
  8. Gluster: RAID-1 is deployed in the storage cluster. When a machine fails, the service will not be affected. You can initiate automatic data repair after replacing the machine or repairing the hard disk

    1. (deployment method: refer to the chapter on data backup, in which gluster’s operation and maintenance management refers to node expansion)

Tcallusdb is a distributed NoSQL database produced by Tencent. The storage and scheduling code is completely self-developed. It has the characteristics of cache + floor fusion architecture, Pb level storage, millisecond delay, lossless horizontal expansion and complex data structure. At the same time, it has the characteristics of rich ecology, convenient migration, extremely low operation and maintenance cost and five nine high availability. Customers cover games, Internet, government affairs, finance, manufacturing, Internet of things and other fields.

[tcaplus DB knowledge base] tcaplus DB high availability deployment

Recommended Today

“Self test” stay up late to summarize 50 Vue knowledge points, all of which will make you God!!!

preface Hello everyone, I’m Lin Sanxin. A lot of things have happened these days (I won’t say what’s specific). These things have scared me to treasure my collection these yearsVue knowledge pointsI took out my notes and tried my best to recall them. Finally, I realized these 50Knowledge points(let’s not be too vulgar. It’s not […]