Skip to content

Conversation

@behouba
Copy link
Contributor

@behouba behouba commented Aug 17, 2025

This PR adds support for global configuration file. Before, users had to create a separate configuration file for each process involved in the coordinated checkpoint. This PR enables the usage of a single config file for multiple processes. The global config should be stored inside /etc/criu/criu-coordinator.json and it uses a slightly different format from the per-process config.

Example of global config:

    {
       "address": "127.0.0.1",
       "port": "8080",
       "log-file": "/var/log/criu-coordinator.log",
       "dependencies": {
           "A": ["B", "C"],
           "B": ["C", "A"],
           "C": ["A"]
       }
    }

@behouba behouba force-pushed the feat/global-config-support branch 2 times, most recently from 5154e30 to 501222b Compare August 17, 2025 17:31
This commit centralizes client specific feature and cleans up the main
application entry point.

Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
@behouba behouba force-pushed the feat/global-config-support branch 2 times, most recently from 0be9125 to c6c85d6 Compare August 17, 2025 17:59
Prior to this commit, users had to create a separate configuration file for
each process involved in the coordinated checkpoint. This commit
enables the usage of a single config file for multiple processes. The
global config should be stored inside `/etc/criu/criu-coordinator.json`
and it uses a slightly different format from the per-process config.

Example of global config:
```json
    {
       "address": "127.0.0.1",
       "port": "8080",
       "log-file": "/var/log/criu-coordinator.log",
       "dependencies": {
           "A": ["B", "C"],
           "B": ["C", "A"],
	   "C": ["A"]
       }
    }
```
Where `dependencies` field is a map of IDs (e.g: container IDs) to a list of dependencies.

Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
@behouba behouba force-pushed the feat/global-config-support branch 2 times, most recently from b9b980b to fed78da Compare August 17, 2025 18:03
@behouba behouba marked this pull request as ready for review August 17, 2025 18:09
@rst0git rst0git self-requested a review August 26, 2025 12:58
@rst0git
Copy link
Member

rst0git commented Aug 26, 2025

@behouba Thanks! This is very useful change. I will review the patches later this week.

@behouba behouba mentioned this pull request Aug 26, 2025
@rst0git
Copy link
Member

rst0git commented Sep 1, 2025

Merged. Thanks!

@rst0git rst0git closed this Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants