Ad Widget

Collapse

Распределенная работа zabbix 3.4 + postgresql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pzhbanov
    Junior Member
    • Apr 2018
    • 1

    #1

    Распределенная работа zabbix 3.4 + postgresql

    Добрый день.

    Подскажите пожалуйста, поддерживает ли zabbix 3.4 такой режим работы, при котором запись данных происходит в одну БД, чтение же с другой, которые в свою очередь разнесены по разным серверам?
  • Daikazahn
    Member
    • Nov 2016
    • 69

    #2
    Меня тоже это интересно
    Кто-нибудь знает как вывести чтение на slave сервера?

    У jdbc есть такой пример строки подключения
    For example an application can create two connection pools. One data source is for writes, another for reads. The write pool limits connections only to master node:
    Code:
    jdbc:postgresql://node1,node2,node3/accounting?targetServerType=master.
    And read pool balances connections between slaves nodes, but allows connections also to master if no slaves are available:
    Code:
    jdbc:postgresql://node1,node2,node3/accounting?targetServerType=preferSlave&loadBalanceHosts=true
    If a slave fails, all slaves in the list will be tried first. If the case that there are no available slaves the master will be tried. If all of the servers are marked as "can't connect" in the cache then an attempt will be made to connect to all of the hosts in the URL in order.
    https://jdbc.postgresql.org/document...d/connect.html

    Как-нибудь так или по другому можно распределить нагрузку на master и slave?
    Last edited by Daikazahn; 20-04-2018, 14:52.

    Comment

    • Daikazahn
      Member
      • Nov 2016
      • 69

      #3
      Нашел похожий issue - правда только для frontend https://support.zabbix.com/browse/ZBXNEXT-1603

      Comment

      Working...