简体   繁体   English

如何使用 MariaDB Maxscale 配置只读服务器

[英]How to configure a read-only server with MariaDB Maxscale

Is it possible to configure a read-only server that remains slave even though no more masters are available with MariaDB Maxscale 6. I tried it with a readconroute router, but that one turned the slave eventually in to a master as well.是否可以配置一个只读服务器,即使 MariaDB Maxscale 6 没有更多的主服务器可用,它仍然是从服务器。我用 readconroute 路由器尝试过,但是那个最终也把从服务器变成了主服务器。

/Theo /西奥

If you are using the mariadbmon monitor, you can use the servers_no_promotion parameter to list the server you want to remain read-only.如果您使用的是mariadbmon监视器,则可以使用servers_no_promotion参数列出您希望保持只读状态的服务器。

For galeramon there should be no need to keep servers as read-only as all functioning nodes are capable of receiving writes.对于galeramon ,不需要将服务器保持为只读状态,因为所有功能节点都能够接收写入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM