Skip to content

storing and loading cluster persistent state #9

@bertschinger

Description

@bertschinger

Some cluster state needs to be stored persistently so that the manager process can recall it after restarting.

This includes:

  • a list of hosts, resource groups, and/or resources that are unmanaged
  • a list of hosts that were fenced

Whenever this state changes, for example

  • because the admin un-managed or re-managed a host
  • because a host was fenced
  • because an admin cleared a host fenced flag, making the host eligible for fencing again

the state file should be updated.

The state file should have a default location in /etc/halo but a custom location can be provided with an environment variable and/or command line argument.

I don't see any reason to require a fancy database format; I think a simple text file in a format like yaml or toml should suffice.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions