The configuration of a fleet as it is meant to run, written as code (commons estate 0006-estate-fleet-storeFR-012): the store of a host reached by SSH is the system of record, a branch of a Git repository is the replica that keeps the history, and a bucket is the replica that keeps a copy elsewhere. The three stores are opened by their own libraries and given here; the configuration says which is which, what the mirror may do and who writes. The names are examples: a fleet points the same code at its own host, repository and bucket.
typeExampleStores= {
/** The system of record: the store of a host reached by SSH. */readonlyssh:PrimaryStore;
/** The history: a branch of a Git repository, where a settlement of several changes is one commit. */readonlygit:ReplicaStore;
/** The copy elsewhere: a bucket. */readonlycloud:ReplicaStore;
};
The configuration of the example fleet: the host is the primary, the Git branch and the bucket are its replicas, nothing is deleted at a replica and a settlement is made when it is asked for.