Motr
M0
|
Data Structures | |
struct | m0_conf_ha_process |
struct | m0_conf_ha_service |
Macros | |
#define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF |
Functions | |
M0_INTERNAL void | m0_conf_ha_process_event_post (struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *process_fid, uint64_t pid, enum m0_conf_ha_process_event event, enum m0_conf_ha_process_type type) |
M0_INTERNAL void | m0_conf_ha_service_event_post (struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *source_process_fid, const struct m0_fid *source_service_fid, const struct m0_fid *service_fid, uint64_t pid, enum m0_conf_ha_service_event event, enum m0_conf_service_type service_type) |
struct m0_conf_ha_process | M0_XCA_DOMAIN (rpc) |
Variables | |
enum m0_conf_ha_service_event | M0_XCA_DOMAIN |
Process event.
Enumerator | |
---|---|
M0_CONF_HA_PROCESS_STARTING | The process is about to start. Usually this notification is sent after connection to HA is established, but it may not be the first m0_ha_msg sent from the process. |
M0_CONF_HA_PROCESS_STARTED | The process is fully started and its services can handle requests. |
M0_CONF_HA_PROCESS_STOPPING | The process is about to stop. New connections to the services from this process shouldn't be made after this notification is sent (exception: if connections are required during the "stopping" phase). |
M0_CONF_HA_PROCESS_STOPPED | Process is stopped. No new connections should be made after this point. Usually this notification is sent just before process disconnects from HA, but it may not be the last m0_ha_msg sent from the process. |
M0_CONF_HA_PROCESS_DTM_RECOVERED | When the process has completed the iteration of the DTM log and there’re no new records to send to the recovering process it sends "REDO_END" message. When recovering process receives "REDO_END" from all ONLINE and TRANSIENT processes of the cluster it completes the recovery and sends M0_CONF_HA_PROCESS_DTM_RECOVERED() to HARE. If any process goes PERMANENT during DTM recovery the process being recovered shall not wait "REDO_END" from this process. |
Defines the source of the process event
Service event.
M0_INTERNAL void m0_conf_ha_process_event_post | ( | struct m0_ha * | ha, |
struct m0_ha_link * | hl, | ||
const struct m0_fid * | process_fid, | ||
uint64_t | pid, | ||
enum m0_conf_ha_process_event | event, | ||
enum m0_conf_ha_process_type | type | ||
) |
M0_INTERNAL void m0_conf_ha_service_event_post | ( | struct m0_ha * | ha, |
struct m0_ha_link * | hl, | ||
const struct m0_fid * | source_process_fid, | ||
const struct m0_fid * | source_service_fid, | ||
const struct m0_fid * | service_fid, | ||
uint64_t | pid, | ||
enum m0_conf_ha_service_event | event, | ||
enum m0_conf_service_type | service_type | ||
) |
struct m0_conf_ha_process M0_XCA_DOMAIN | ( | rpc | ) |
enum m0_conf_ha_service_event M0_XCA_DOMAIN |