{"id":18677243,"url":"https://github.com/elixir-toniq/schism","last_synced_at":"2025-12-11T23:47:57.843Z","repository":{"id":41815580,"uuid":"171137475","full_name":"elixir-toniq/schism","owner":"elixir-toniq","description":"Partition testing tool for elixir","archived":false,"fork":false,"pushed_at":"2023-03-30T11:01:18.000Z","size":64,"stargazers_count":71,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-30T19:53:53.751Z","etag":null,"topics":["distributed-systems","elixir","erlang","testing"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/elixir-toniq.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}},"created_at":"2019-02-17T15:23:06.000Z","updated_at":"2025-05-01T09:49:23.000Z","dependencies_parsed_at":"2023-01-21T14:31:06.119Z","dependency_job_id":"ce363f9d-c1cb-4acd-b67a-1461198b9b63","html_url":"https://github.com/elixir-toniq/schism","commit_stats":null,"previous_names":["keathley/schism"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/elixir-toniq/schism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-toniq%2Fschism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-toniq%2Fschism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-toniq%2Fschism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-toniq%2Fschism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-toniq","download_url":"https://codeload.github.com/elixir-toniq/schism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-toniq%2Fschism/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266241052,"owners_count":23898063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["distributed-systems","elixir","erlang","testing"],"created_at":"2024-11-07T09:33:05.418Z","updated_at":"2025-12-11T23:47:57.812Z","avatar_url":"https://github.com/elixir-toniq.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schism\n\n[![CircleCI](https://circleci.com/gh/keathley/schism.svg?style=svg)](https://circleci.com/gh/keathley/schism)[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hexdocs.pm/schism/)\n\nSchism provides a simple api for testing partitions between BEAM nodes.\n\nDocumentation: [https://hexdocs.pm/schism](https://hexdocs.pm/schism).\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `schism` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:schism, \"~\u003e 1.0\", only: [:dev, :test]}\n  ]\nend\n```\n\n## Usage\n\nLet's say that we have 5 nodes and we want to test what happens when they\ndisconnect from each other. We can use schism like so:\n\n```elixir\ntest \"netsplits\" do\n  [n1, n2, n3, n4, n5] = nodes\n\n  # Partition our nodes\n  Schism.partition([n1, n3])\n  Schism.partition([n4])\n  Schism.partition([n2, n5])\n\n  # Test some stuff...\n\n  # Heal our partitions\n  Schism.heal([n1, n3])\n  Schism.heal([n2, n4, n5])\nend\n```\n\nThis api is useful for testing and development in conjunction with tools like\n[local cluster](https://github.com/whitfin/local-cluster) and [propcheck](https://github.com/alfert/propcheck).\n\nIt is not recommended that you use this in production.\n\n## Things Schism doesn't do\n\nSchism's reason for existing is to quickly and easily test netsplits between BEAMS\nand it uses a rudimentary trick with cookies to achieve this goal. This is great\nfor quickly testing your system against faults.\n\nBut because of Schism's simple nature it should not be considered a replacement\nfor a more robust suite of tests. It *does not* test failed TCP connections,\ninterleaving of messages, race-conditions, clock skew, corruption, or any of\nthe other issues you will see in a distributed system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-toniq%2Fschism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-toniq%2Fschism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-toniq%2Fschism/lists"}