{"id":21029865,"url":"https://github.com/kitconcept/cluster-purger","last_synced_at":"2026-02-14T03:15:02.738Z","repository":{"id":186470439,"uuid":"611456268","full_name":"kitconcept/cluster-purger","owner":"kitconcept","description":"Purge multiple instances of Varnish inside a cluster","archived":false,"fork":false,"pushed_at":"2025-02-14T14:15:01.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T17:45:24.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kitconcept.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-08T21:33:59.000Z","updated_at":"2025-02-14T14:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4f0aa54-3274-4521-a7dd-350ef89788fe","html_url":"https://github.com/kitconcept/cluster-purger","commit_stats":null,"previous_names":["kitconcept/cluster-purger"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kitconcept/cluster-purger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fcluster-purger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fcluster-purger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fcluster-purger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fcluster-purger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitconcept","download_url":"https://codeload.github.com/kitconcept/cluster-purger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fcluster-purger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29433304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T02:20:56.896Z","status":"ssl_error","status_checked_at":"2026-02-14T02:11:29.478Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T12:14:45.095Z","updated_at":"2026-02-14T03:15:02.717Z","avatar_url":"https://github.com/kitconcept.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Varnish Cluster Purger\n\nTool to replicate a Purge request to all instances of Varnish in a cluster.\n\n## Supported Clusters\n\n* Docker Compose\n* Docker Swarm\n\n\n## Usage\n\n### Docker Compose\n\nAdd a new service to a Docker Compose:\n\n```yaml\n  purger:\n    image: ghcr.io/kitconcept/cluster-purger:latest\n    ports:\n      - \"8000:80\"\n    environment:\n      PURGER_MODE: \"compose\"\n      PURGER_SERVICE_NAME: varnish\n      PURGER_SERVICE_PORT: 80\n      PURGER_PUBLIC_SITES: \"['site.example.com', 'cms.example.com']\"\n```\n\nThis service exposes port `8000` on the local host (only for debugging purposes), and relies on the existence of another service called `varnish`.\n\nTo purge the `/de` path on Varnish, from another service in the same compose:\n\n```python\nimport httpx\n\nresponse = httpx.request(method=\"PURGE\", url=\"http://purger/de\")\n```\n\nTo purge the `/de` path on Varnish, from the host, use:\n\n```python\nimport httpx\n\nresponse = httpx.request(method=\"PURGE\", url=\"http://localhost:8000/de\")\n```\n\n### Environment Variables\n\n| Variable | Description | Example | Default |\n| --- | --- | --- | --- |\n|PURGER_MODE| Which type of cluster. Could be `compose` or `swarm` | `swarm` | `swarm` |\n|PURGER_SERVICE_NAME| Varnish service name in the cluster | `varnish` |  |\n|PURGER_SERVICE_PORT| Service port | `8080` | `80` |\n|PURGER_PUBLIC_SITES| List of public hostnames to send in the Host header | `\"['site.example.com', 'cms.example.com']\"` |  |\n\n### OpenTelemetry support\n\nThis tool has OpenTelemetry support built-in. To use it, set the following environment variables on your service definition.\n\n| Variable | Description | Example |\n| --- | --- | --- |\n|OTEL_EXPORTER_OTLP_ENDPOINT| OpenTelemetry endpoint | `http://192.168.1.1:4317` |\n|OTEL_RESOURCE_ATTRIBUTES| Set attributes for OpenTelemetry, i.e. service name | `service.name=cluster-purger` |\n|OTEL_DEBUG| Dump OpenTelemetry traces to console instead of sending it to the server | `True` |\n\n## Credits\n\n[![kitconcept GmbH](https://raw.githubusercontent.com/kitconcept/docker-stack-deploy/main/docs/kitconcept.png)](https://kitconcept.com)\n\n## License\n\nThe project is licensed under [MIT License](./LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fcluster-purger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitconcept%2Fcluster-purger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fcluster-purger/lists"}