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

Eye log stdout took long time to flush to file. #238

Open
emanzx opened this issue Jul 21, 2020 · 0 comments
Open

Eye log stdout took long time to flush to file. #238

emanzx opened this issue Jul 21, 2020 · 0 comments

Comments

@emanzx
Copy link

emanzx commented Jul 21, 2020

I have notice some of my daemon that is daemonize by eye are not emitting log directly to file. is there a buffering happen and can I change that.

Here are my eye config.

require 'eye-http'

Eye.config do
  http :enable => true, :host => "127.0.0.1", :port => 12345
  logger '/var/log/dnsvault/eye/eye.log'
end

Eye.application 'services' do
  check :cpu, every: 10.seconds, below: 100, times: 3 # global check for all processes

    working_dir "/root/"
    stdall "/var/log/dnsvault/eye/trash.log" # stdout,err logs for processes by default
    env 'APP_ENV' => 'development' # global env for each processes
    trigger :flapping, times: 10, within: 1.minute, retry_in: 10.minutes
    chain grace: 10.seconds # chained start-restart with 10s interval, one by one.
    process :bindquerycollector do
       env 'HOME' => "/usr/home/system"
       working_dir "/usr/home/system/dnsvault/sbin"
       uid "system"
       gid "system"
       pid_file "/tmp/bindquerycollector.pid"
       start_command "/usr/home/system/dnsvault/sbin/bindquerycollector"
       stdall "/var/log/dnsvault/eye/bindquerycollector.log"
       stop_signals [:INT, 5.seconds, :QUIT, 2.second, :KILL]
       start_timeout 60.seconds
       daemonize true
    end
end

 eye -v
Eye v0.10.0 (c) 2012-2017 @kostya
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

1 participant