Ad Widget

Collapse

Increase Configuration Cache on Docker Deployment

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techmattr
    Member
    • Sep 2022
    • 39

    #1

    Increase Configuration Cache on Docker Deployment

    I'm using a 6.2 deployment with the official compose file: docker-compose_v3_ubuntu_pgsql_latest.yaml
    How would I go about increasing the configuration cache size? I've added 45 servers so far and I'm at about 85%.

    I found ZBX_CACHESIZE=8M in env_vars/.env_srv and changed that to 256M. However, I'm not sure if that is the correct value to edit and I'm not sure how to recreate the container to pick up the new value?
  • Answer selected by techmattr at 29-09-2022, 07:18.
    techmattr
    Member
    • Sep 2022
    • 39

    The correct commands to reload the container and pickup the new variables if your compose file is named docker-compose.yml. If it is not then specify the file with -f

    Code:
    docker compose stop zabbix-server
    docker compose create zabbix-server
    docker compose start zabbix-server
    Last edited by techmattr; 29-09-2022, 07:18.

    Comment

    • techmattr
      Member
      • Sep 2022
      • 39

      #2
      I fixed this by changing these two values in env_vars/.env_srv
      Code:
      ZBX_CACHESIZE=256M
      ZBX_VALUECACHESIZE=256M
      They were both commented out so I'm not sure what the default value is but I went from 80-90% used on both to about 10% used.
      To reload the container with the new values I ran the following commands
      Code:
      docker compose stop zabbix-server
      docker compose up
      I think this may have screwed some things up though. My problems are not appearing properly in the dashboard. "docker compose up" rebuilt all of my containers. It didn't wipe out the database because all of my hosts and configurations were still in Zabbix but things haven't been working right since.
      I think the correct commands may have been

      Code:
      docker compose -f docker-compose_v3_ubuntu_pgsql_latest.yaml stop zabbix-server
      docker compose -f docker-compose_v3_ubuntu_pgsql_latest.yaml zabbix-server up -d
      Also, if you have MSSQL drivers installed in your zabbix-server container or anything else installed; that will be lost and need re-installed/configured.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #3
        Default values are written here https://www.zabbix.com/documentation.../zabbix_server

        Comment

        • techmattr
          Member
          • Sep 2022
          • 39

          #4
          The correct commands to reload the container and pickup the new variables if your compose file is named docker-compose.yml. If it is not then specify the file with -f

          Code:
          docker compose stop zabbix-server
          docker compose create zabbix-server
          docker compose start zabbix-server
          Last edited by techmattr; 29-09-2022, 07:18.

          Comment

          Working...