Execute service as distributed nodes #96

Merged
joao.dubas merged 11 commits from jpd-multiple-local-nodes into main 2024-09-22 18:56:28 +00:00
Owner

To create a cluster with distributed nodes, the following changes were made:

  • Use dns_cluster to execute distributed nodes
  • Add script to execute distributed nodes locally

Also, improve local execution by:

Some minor improvements:

  • Ignore files and folders in git and docker
  • Remove boilerplate comments
To create a cluster with distributed nodes, the following changes were made: * Use [`dns_cluster`][0] to execute distributed nodes * Add _script_ to execute distributed nodes locally Also, improve local execution by: * Use [`mix release`][1] to make easier [deploy `phoenix`][2] * Use [`compose watch`][3] to synchronize code from the host with the service Some minor improvements: * Ignore files and folders in git and docker * Remove boilerplate comments [0]: https://github.com/phoenixframework/dns_cluster [1]: https://hexdocs.pm/mix/Mix.Tasks.Release.html [2]: https://hexdocs.pm/phoenix/releases.html [3]: https://docs.docker.com/compose/how-tos/file-watch/
joao.dubas added 8 commits 2024-09-20 22:26:46 +00:00
Adjust `Dockerfile` and `docker-compose` to use the `release` structure.
* Configure `docker-compose` to scale at least 2 nodes.
* Add script to start service with proper naming
* Create custom resolver.
  * This is not strictly necessary.
feat: upgrade elixir and erlang runtimes
All checks were successful
continuous-integration/drone/pr Build is passing
fe32f3f207
joao.dubas added 3 commits 2024-09-22 14:14:12 +00:00
1. Remove deps upgrade, since we're using the watch definition
2. In it's place add target to start services with watch option
3. Adjust ecto interaction to run command directly
4. Remove tests for now because the folder isn't synced in the image
chore: scale apps to 3 nodes
All checks were successful
continuous-integration/drone/pr Build is passing
e79366a43a
joao.dubas merged commit 9be7566cbb into main 2024-09-22 18:56:28 +00:00
joao.dubas deleted branch jpd-multiple-local-nodes 2024-09-22 18:56:29 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joao.dubas/ex_trainer#96
No description provided.