-
Notifications
You must be signed in to change notification settings - Fork 56
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
sumologic-collector-docker creates duplicate collectors upon every restart #56
Comments
Hi. The collector has internal state to keep track of what has been collected and the state is persistent for container restarts but not redeploys, so we recommend not redeploying the collector container unless you need a newer collector version (we don’t release new versions very frequently though.) Another option is to install and run the collector as a service on your docker host. Unless you uninstall the service, the state is persistent through shutdown, restart and upgrade. |
My goal is to make collector state persist through redeploys. Is there a specific directory in the container that holds the state so I can put it on a docker volume? |
The collector directory is |
@arunderwood Did you attempt / succeed with this? We are seeing the same behaviour, its very annoying and probably should be mentioned in the README It is especially a problem when near Sumo usage limits when the sumo service itself causes the collector to shutdown, which then triggers a restart, which then re-ships all the local files causing more usage... around and around.. |
No, sorry, I never dug into this. I just stopped using the docker collector. |
SUCCESS, got it working. (with a couple of downsides). How it works?
Downsides
The
The
|
Currently, every time I
docker rm sumologic
anddocker run sumologic/collector:latest-no-source
, the collector resends all myLocalFile
sources up to Sumologic, creating a bunch of duplicate logs.Is there a place in the container that tracks the state of what messages have been synced up that I could mount in a volume to persist sync state between container instances?
The text was updated successfully, but these errors were encountered: