Management Realms


Each management realm controller running on the master node stores its configuration and run-time information in an embedded database.

All database tables and indexes can be accessed using the type information and schema definitions from a single database schema class:

class cfxdb.mrealmschema.MrealmSchema(db)[source]

Management realm database schema.

principals: Principals

Application realm client principals.

idx_principals_by_name: IndexPrincipalByName

Index on principals (by name).

credentials: Credentials

WAMP client authentication credentials, used for mapping (authmethod, realm, authid) -> principal.

idx_credentials_by_auth: IndexCredentialsByAuth

Index on credentials (by WAMP auth information).

idx_credentials_by_principal: IndexCredentialsByPrincipal

Index on credentials (by principal_oid, modified).

roles: Roles

Roles for used in authorization with application routing.

idx_roles_by_name: IndexRoleByName

Index on roles (by name).

permissions: Permissions

Permissions defined on roles.

idx_permissions_by_uri: IndexPermissionByUri

Index on permissions: by URI.

arealms: ApplicationRealms

Application realms defined in this management realm.

idx_arealms_by_name: IndexApplicationRealmByName

Index on application realms: by name.

idx_arealm_by_webcluster: IndexApplicationRealmByWebCluster

Index on application realms: by web cluster.

arealm_role_associations: ApplicationRealmRoleAssociations

Association of roles to application realms.

routerclusters: RouterClusters

Router clusters defined in this management realm.

idx_routerclusters_by_name: IndexRouterClusterByName

Index on router clusters: by name.

routercluster_node_memberships: RouterClusterNodeMemberships

Node membership in router clusters.

router_workergroups: RouterWorkerGroups

Router worker groups.

idx_workergroup_by_cluster: IndexWorkerGroupByCluster

Index on worker groups: by cluster.

idx_workergroup_by_placement: IndexWorkerGroupByPlacement

Index on worker groups: by placement.

router_workergroup_placements: RouterWorkerGroupClusterPlacements

Router worker cluster placements.

idx_clusterplacement_by_workername: IndexClusterPlacementByWorkerName

Index on router worker placements: by worker name.

webclusters: WebClusters

Web clusters.

idx_webclusters_by_name: IndexWebClusterByName

Index of web clusters: by name.

webcluster_node_memberships: WebClusterNodeMemberships

Node membership in web clusters.

webservices: WebServices

Web service added to web clusters.

idx_webservices_by_path: IndexWebServiceByPath

Index on web services: by HTTP path.

idx_webcluster_webservices: IndexWebClusterWebServices

Index on web service: by …

mnode_logs: MNodeLogs

Managed node log records.

mworker_logs: MWorkerLogs

Managed node worker log records.

static attach(db)[source]

Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistant maps and attached to the database slots.

Parameters

db – zlmdb.Database

Returns

object of Schema

Note

Each management realm has its own dedicated management realm controller database. This database is separate for each management realm and not accessed by any other management realm controller.