Php, such as redis

Source: Internet
Author: User
If you use sentinel to manage two master and two slave databases, in the form of one master-to-one slave, which php connection should be used for writing content, currently the connection sentinel cannot be written. The idea is as follows: when php directly connects to sentinel, sentinel serves as the server, but sentinel does not support conventional redis commands such as set ,... if you use sentinel to manage two master and two slave databases, in the form of one master-to-one slave, which php connection should be used for writing content, currently the connection sentinel cannot be written.
The idea is as follows:

  1. When php directly connects to sentinel, sentinel serves as the server, but sentinel does not support conventional redis commands such as set, so it should not be connected to redis sentinel,

  2. If php directly connects to the master server, sentinel will switch from the master server to the master server after the master server crashes. php cannot switch over in real time.
    I have never encountered this problem before. Could you share your solutions or ideas? Thank you in advance.

Reply content:

If you use sentinel to manage two master and two slave databases, in the form of one master-to-one slave, which php connection should be used for writing content, currently the connection sentinel cannot be written.
The idea is as follows:

  1. When php directly connects to sentinel, sentinel serves as the server, but sentinel does not support conventional redis commands such as set, so it should not be connected to redis sentinel,

  2. If php directly connects to the master server, sentinel will switch from the master server to the master server after the master server crashes. php cannot switch over in real time.
    I have never encountered this problem before. Could you share your solutions or ideas? Thank you in advance.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.