3.3. Resource Trees - Basics / Definitions

download PDF
The following illustrates the structure of a resource tree, with a corresponding list that defines each area.
    <service name="foo" ...>
        <fs name="myfs" ...>
            <script name="script_child"/>
        <ip address="" .../>
  • Resource trees are XML representations of resources, their attributes, parent/child and sibling relationships. The root of a resource tree is almost always a special type of resource called a service. Resource tree, resource group, and service are usually used interchangeably on this wiki. From RGManager's perspective, a resource tree is an atomic unit. All components of a resource tree are started on the same cluster node.
  • fs:myfs and ip: are siblings
  • fs:myfs is the parent of script:script_child
  • script:script_child is the child of fs:myfs

3.3.1. Parent / Child Relationships, Dependencies, and Start Ordering

The rules for parent/child relationships in the resource tree are fairly simple:
  • Parents are started before children
  • Children must all stop (cleanly) before a parent may be stopped
  • From these two, you could say that a child resource is dependent on its parent resource
  • In order for a resource to be considered in good health, all of its dependent children must also be in good health
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.