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

git2consul problem does not cause Docker container to exit #177

Open
boarder981 opened this issue May 21, 2018 · 4 comments
Open

git2consul problem does not cause Docker container to exit #177

boarder981 opened this issue May 21, 2018 · 4 comments

Comments

@boarder981
Copy link

Please note that I'm using the dockerized version of git2consul, latest tag 0.12.13. I'm posting here because activity in the docker project looks pretty slim.

Occasionally git2consul appears to "die" inside the container and logs stop streaming/writing to file, however the container keeps running. Restarting the git2consul container usually fixes the issue. Ideally the container would exit so that I could use a Docker restart policy to restart it automatically, but in this case that option is useless.

Has anyone experienced this? I'm not sure of the root cause, and even with log level set to "debug", it doesn't appear to output any warnings or errors. In fact, I don't ever see errors, so is there a higher log level than debug?

In any case, here is a snippet of my config:

{
  "version": "1.0",
  "max_sockets": 10,
  "expand_keys_diff": true,
  "local_store": "/tmp/git2consul_cache",
  "logger" : {
    "name" : "git2consul",
    "streams" : [{
      "level": "trace",
      "stream": "process.stdout"
    },
    {
      "level": "debug",
      "type": "rotating-file",
      "path": "/tmp/git2consul.log"
    }]
  },
  
  "repos" : [
      {
        "name" : "project-1",
        "url" : "[email protected]:path/to/project-1.git",
        "include_branch_name" : true,
        "source_root": "consul-kv",
        "mountpoint": "dir",
        "support_tags" : true,
        "branches" : ["master"],
        "hooks": [
          {
            "type" : "polling",
            "interval" : "1"
          }
        ]
      },	
      {
        "name" : "project-2",
        ...

Any insight or suggestions would be greatly appreciated!

@bitsofinfo
Copy link

+1

1 similar comment
@sharathmekkottil
Copy link

+1

@boarder981
Copy link
Author

Anyone have thoughts or ideas on how to fix this?

Just FYI - since I submitted the original post, I changed the polling interval for all of my projects to 5m instead of 1m. I thought perhaps maybe it was pulling too many things and was overlapping on itself. In any case, this seemed to stabilize the environment a bit, but we're running into the same issues again.

@bitsofinfo
Copy link

Looking at the number of open PRs, issues etc and lack of releases since 2016, I'd venture to say this project is abandoned

In the meantime, seems it has something to do w/ the sheer number of repositories and tags/branch combinations you are dealing with.

Perhaps the solution is just to run multiple git2consul instances, have each one limited and responsible for only N repositories, when you reach that ceiling, dedicate a separate git2consul instance for handling another bucket of N repositories

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

3 participants