{"id":16701643,"url":"https://github.com/coryodaniel/k8s-elixir-schedulers","last_synced_at":"2025-04-10T04:12:12.668Z","repository":{"id":66508454,"uuid":"408926820","full_name":"coryodaniel/k8s-elixir-schedulers","owner":"coryodaniel","description":"This is an example app used to illustrate how online schedulers are configured post OTP23 running in kubernetes.","archived":false,"fork":false,"pushed_at":"2021-09-21T18:12:54.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T05:34:46.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/coryodaniel.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":"2021-09-21T18:12:34.000Z","updated_at":"2024-04-19T05:02:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdae87d1-81bd-4cdb-b479-2202463ac7c9","html_url":"https://github.com/coryodaniel/k8s-elixir-schedulers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fk8s-elixir-schedulers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fk8s-elixir-schedulers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fk8s-elixir-schedulers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryodaniel%2Fk8s-elixir-schedulers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coryodaniel","download_url":"https://codeload.github.com/coryodaniel/k8s-elixir-schedulers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154994,"owners_count":21056543,"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":[],"created_at":"2024-10-12T18:45:00.188Z","updated_at":"2025-04-10T04:12:12.660Z","avatar_url":"https://github.com/coryodaniel.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Erlang Schedulers on Kubernetes\n\nThis is an example app used to illustrate how online schedulers are configured post OTP23 running in kubernetes. It expects at least 4 CPUs. If you don't have 4 CPUs available, change the `resources.limits.cpu` in `./k8s/pod.yaml`.\n\nThe application calculates primes, starting a task for each scheduler.\n\n_This example is configured for running on docker for desktop using the local registry._\n\n## Setup\n\n1. Install docker-for-desktop 🙃\n2. Run `make all`\n\n## Running example\n\nYou'll need two terminals\n\n1. Run `make top` in your first terminal. This will show you the current CPU usage of the container.\n2. In a second terminal run `make shell`. This will open up a bash shell in the container.\n3. Run `iex -S mix` in the container.\n4. Run `K8sScheduler.run()`. If it returns too quickly, try: `K8sScheduler.run(1_000_000)`\n5. Run Step #4 a number of times to saturate the available CPUs.\n\nWhat you should see is the number of online schedulers is set to the `resources.limits.cpu`. As the CPUs are saturated, you should see mCPU amount rising in the first terminal.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryodaniel%2Fk8s-elixir-schedulers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoryodaniel%2Fk8s-elixir-schedulers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryodaniel%2Fk8s-elixir-schedulers/lists"}