Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple aggregators in same physical host are logging same hostname #7

Open
ericho opened this issue Jun 9, 2017 · 0 comments
Open
Labels

Comments

@ericho
Copy link
Member

ericho commented Jun 9, 2017

Description

During the multiple aggregator in same physical host implementation it was found that the host names being logged to the database when monitoring itself are storing the actual physical host name instead of the logical one provided through orcm-site configuration.

Expected Behavior

Each aggregator getting its hostname registry to database like they are registered in orcm-site logical name

Actual Behavior

Given an orcm-site with multiple aggregators and running them in the same physical node will produce database entries where hostname is the physical one instead of logical name.

If your aggregators are named agg01, agg02, etc.. and those are run under master3 node, all of the entries will be logged with master3 as the hostname.

Steps to Reproduce the Problem

  1. Configure orcm-site like the one attached below where you have multiple aggregators.
  2. Launch orcmsched
  3. Run orcmd for each aggregator using the -p option like this: ./orcmd -p 55815
  4. Verify entries in database and all of the aggregators will be using the same physical hostname registered.
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
    <version>3.0</version>
    <role>RECORD</role>
    <junction>
        <type>cluster</type>
        <name>master3</name>
        <junction>
            <type>row</type>
            <name>row1</name>
            <junction>
                <type>rack</type>
                <name>agg01</name>
                <controller>
                    <host>agg01</host>
                    <port>55815</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:0-511]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg02</name>
                <controller>
                    <host>agg02</host>
                    <port>55825</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:512-1023]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg03</name>
                <controller>
                    <host>agg03</host>
                    <port>55835</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:1024-1535]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg04</name>
                <controller>
                    <host>agg04</host>
                    <port>55845</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:1536-2047]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg05</name>
                <controller>
                    <host>agg05</host>
                    <port>55855</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:2048-2559]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg06</name>
                <controller>
                    <host>agg06</host>
                    <port>55865</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:2560-3071]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg07</name>
                <controller>
                    <host>agg07</host>
                    <port>55875</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:3072-3583]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
            <junction>
                <type>rack</type>
                <name>agg08</name>
                <controller>
                    <host>agg08</host>
                    <port>55885</port>
                    <aggregator>yes</aggregator>
                </controller>
                <junction>
                    <type>node</type>
                    <name>node[4:3584-4095]</name>
                    <controller>
                        <host>@</host>
                        <port>55805</port>
                        <aggregator>no</aggregator>
                    </controller>
                </junction>
            </junction>
        </junction>
    </junction>
    <scheduler>
        <shost>master01</shost>
        <port>55820</port>
    </scheduler>
</configuration>

Specifications

  • Version: cad49d9
  • Platform: CentOS 7.2
  • Component: Configuration, cfgi3
@ericho ericho added the bug label Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant