{"id":20372543,"url":"https://github.com/exosite/libcluster_db","last_synced_at":"2026-06-09T05:01:55.735Z","repository":{"id":46265748,"uuid":"132733011","full_name":"exosite/libcluster_db","owner":"exosite","description":"Automatic cluster formation/healing for Elixir applications using database heartbeat.","archived":false,"fork":false,"pushed_at":"2025-07-09T15:19:17.000Z","size":34,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-07-09T16:28:43.117Z","etag":null,"topics":["clustering","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exosite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-05-09T09:22:40.000Z","updated_at":"2025-05-28T17:33:37.000Z","dependencies_parsed_at":"2025-01-15T05:42:29.493Z","dependency_job_id":"a5e2e15f-544a-42ce-bb9e-9331cb411ecc","html_url":"https://github.com/exosite/libcluster_db","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/exosite/libcluster_db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exosite%2Flibcluster_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exosite%2Flibcluster_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exosite%2Flibcluster_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exosite%2Flibcluster_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exosite","download_url":"https://codeload.github.com/exosite/libcluster_db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exosite%2Flibcluster_db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clustering","elixir"],"created_at":"2024-11-15T01:13:44.315Z","updated_at":"2026-06-09T05:01:55.679Z","avatar_url":"https://github.com/exosite.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibclusterDB\n\nAutomatic cluster formation/healing for Elixir applications using database heartbeat.\n\nThis is a database heartbeat strategy for [libcluster](https://hexdocs.pm/libcluster/). It currently supports identifying nodes based on Mongodb.\n\n## Installation\n\n```elixir\ndef application do\n  [\n    applications: [\n      :libcluster_db,\n      ...\n    ],\n  ...\n  ]\n\ndef deps do\n  [{:libcluster_db, github: \"exosite/libcluster_db\", branch: \"master\"}]\nend\n```\n\n## An example configuration\n\nThe configuration for libcluster_db can also be described as a spec for the clustering topologies and strategies which will be used. (Now only Mongodb heartbeat implementation.)\n\n### Mongodb\nMongodb heartbeat implementation. We support this format to get the setting values from environment variables. Like this:\n`{:system, \"MONGODB_URL\", \"mongodb://localhost:27017/cluster_heartbeat\"}`\n\n```elixir\nconfig :libcluster,\n  topologies: [\n    example: [\n      strategy: ClusterDB.Strategy.Mongo,\n      config: [\n        mongodb: [\n          url: \"mongodb://localhost:27017/cluster_heartbeat\",\n          type: :unknown,\n          pool_handler: DBConnection.Poolboy,\n          collection_name: \"node_status\"\n        ],\n        heartbeat: [interval: 1000, delay_tolerance: 1000],\n      ],\n    ]\n  ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexosite%2Flibcluster_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexosite%2Flibcluster_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexosite%2Flibcluster_db/lists"}