Files
ahriman/recipes/distributed
Evgenii Alekseev c6306631e6 fix: careful handling of file permissions during initialization
It has been found that during cold start (e.g. in docker container),
some permissions are invalid. In order to handle that, some operations
are not guarded with RepositoryPaths.preserve_root guard

In addition, it has been also found that in some cases (e.g. web server
start) migrations are performed on empty repository identifier which may
lead to wrong data (see also 435375721d),
as well as some unexpected results during database operations. In order
to handle that, now all watcher instances have their own databases (and
configurations)
2025-07-11 17:13:37 +03:00
..
2023-12-20 10:00:12 +02:00

Distributed

  1. Create user demo with password from AHRIMAN_PASSWORD environment variable.
  2. Setup repository named ahriman-demo with architecture x86_64.
  3. Start web server at port 8080.
  4. Start two workers.
  5. All updates triggered by the web server will be passed to workers.
  6. All updates from worker instances are uploaded to the web service.
  7. Repository is available at http://localhost:8080/repo.

In this example, worker list is automatically defined based on the addresses they reported.