Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startup takes several minutes for zabbix-xxl:latest #66

Closed
white-hat opened this issue Oct 5, 2016 · 5 comments
Closed

startup takes several minutes for zabbix-xxl:latest #66

white-hat opened this issue Oct 5, 2016 · 5 comments

Comments

@white-hat
Copy link

white-hat commented Oct 5, 2016

I'm using such docker-compose configuration to launch zabbix backend service

zabbix-backend:
  image: monitoringartist/zabbix-xxl:latest
  mem_limit: 4294967296
  ports:
    - "10051:10051"
  volumes:
    - /etc/localtime:/etc/localtime:ro
  environment:
    - XXL_api=false
    - XXL_searcher=false
    - XXL_analytics=false
    - ZW_enabled=false
    - ZS_DBHost=*******
    - ZS_DBUser=zabbix
    - ZS_DBPassword=********
    - ZA_Hostname=Zabbix BackEnd
    - ZS_CacheSize=128M
    - ZS_StartDBSyncers=4
    - ZS_StartPollers=256
    - ZS_StartPollersUnreachable=8
    - ZS_HistoryCacheSize=16M
    - ZS_TrendCacheSize=16M
    - ZS_ValueCacheSize=48M

It takes up to 5 minutes for this container to start, and I see these errors while it's starting

zabbix-backend_1   | [LOG 20:13:19] Waiting for API, it's still not available
zabbix-backend_1   | [LOG 20:13:24] Waiting for API, it's still not available
zabbix-backend_1   | [LOG 20:13:29] Waiting for API, it's still not available
zabbix-backend_1   | [LOG 20:13:34] Waiting for API, it's still not available
zabbix-backend_1   | [LOG 20:13:39] Waiting for API, it's still not available

Can I somehow really disable that API calls?

@jangaraj
Copy link
Member

jangaraj commented Oct 5, 2016

Yes, it's a issue. I need to rewrite:

  XXL_api=${XXL_api:-true}
  if [ ! $XXL_api ] || [ ! $ZW_enabled ]; then
    return 0
  fi

@white-hat
Copy link
Author

thanks!

On Thu, Oct 6, 2016 at 1:47 PM, Jan Garaj notifications@github.com wrote:

Closed #66 #66 via
98d56f4
98d56f4
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#66 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA4VbJHDBltjWYiuRCGqqkGw2Q9Ns-9Vks5qxV5sgaJpZM4KPPYz
.

@jangaraj
Copy link
Member

jangaraj commented Oct 6, 2016

I need to test it and rebuild all images. For now it's available only in monitoringartist/zabbix-xxl:dev

@jangaraj jangaraj reopened this Oct 6, 2016
@jangaraj
Copy link
Member

jangaraj commented Oct 9, 2016

Done - fixed in monitoringartist/zabbix-xxl images. BTW: this script was/is running in background, so it was not blocking startup. You are starting a lot of pollers. Is a load on your server OK?

@jangaraj jangaraj closed this as completed Oct 9, 2016
@white-hat
Copy link
Author

yes, it could be pollers issue. For some reason (not connected to server load) -- they take few minutes to start processing data... Just saw these error messages while servers is stalling and thought this the cause of my problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants