-
Notifications
You must be signed in to change notification settings - Fork 107
Containerized PCP Integration #1986
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| FROM fedora:33 | ||
|
|
||
| ENV SUMMARY="Performance Co-Pilot" \ | ||
| DESCRIPTION="Performance Co-Pilot is a system performance analysis toolkit." \ | ||
| VERSION=5 | ||
|
|
||
| RUN dnf install -y --setopt=tsflags=nodocs procps-ng gettext pcp pcp-zeroconf && \ | ||
| dnf install -y pcp-doc pcp-gui pcp-system-tools && \ | ||
| dnf clean all | ||
| RUN systemctl enable pmcd && systemctl disable pmlogger | ||
|
|
||
| COPY config /etc/sysconfig/pmcd | ||
|
|
||
| EXPOSE 44321 | ||
| CMD ["/usr/sbin/init"] | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Environment variables for the pmcd daemon. Refer also to the | ||
| # pmcd.options and pmcd.conf files for additional configuration. | ||
|
|
||
| # Behaviour regarding listening on external-facing interfaces; | ||
| # unset PMCD_LOCAL to allow connections from remote hosts. | ||
| # A value of 0 permits remote connections, 1 permits local only. | ||
| PMCD_LOCAL=0 | ||
|
|
||
| # Max length to which the queue of pending connections may grow | ||
| # A value of 5 is the default. | ||
| # PMCD_MAXPENDING=5 | ||
|
|
||
| # Default behaviour regarding pmcd's approach to starting PMDAs; | ||
| # In cases where pmdaroot is available, setting this variable to | ||
| # 1, offloads starting and stopping of agents to pmdaroot. This | ||
| # allows pmcd to not require a restart when starting a new PMDA. | ||
| PMCD_ROOT_AGENT=1 | ||
|
|
||
| # Default behaviour regarding pmcd's approach to re-starting any | ||
| # unresponsive PMDAs; this should only be used with pmdaroot and | ||
| # PMCD_ROOT_AGENT=1 as it allows pmcd to attempt to automatically | ||
| # restart any exited PMDA that it detects (which usually requires | ||
| # privileges not available to pmcd itself). | ||
| PMCD_RESTART_AGENTS=1 | ||
|
|
||
| # Default timeout for waiting on pmcd to accept connections; any | ||
| # longer than this value and the rc scripts report it as failed. | ||
| # The value is a PCPIntro(1) interval in units of seconds and it | ||
| # will be passed directly to the pmcd_wait(1) utility. | ||
| # PMCD_WAIT_TIMEOUT=60 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| FROM fedora:33 | ||
|
|
||
| ENV SUMMARY="Performance Co-Pilot" \ | ||
| DESCRIPTION="Performance Co-Pilot is a system performance analysis toolkit." \ | ||
| VERSION=5 | ||
|
|
||
| RUN dnf install -y --setopt=tsflags=nodocs procps-ng gettext pcp pcp-zeroconf && \ | ||
| dnf install -y pcp-doc pcp-gui pcp-system-tools && \ | ||
| dnf clean all && \ | ||
| rm -rf /etc/pcp/pmlogger/control.d/local | ||
| RUN systemctl enable pmlogger && systemctl disable pmcd | ||
|
|
||
| VOLUME ["/var/log/pcp/pmlogger"] | ||
| CMD ["/usr/sbin/init"] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/python3 | ||
Maxusmusti marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # -*- mode: python -*- | ||
|
|
||
| import sys | ||
| import os | ||
|
|
||
| PROG = os.path.basename(sys.argv[0]) | ||
|
|
||
| if len(sys.argv) != 2 or sys.argv[1] != "--help": | ||
| print(f"{PROG}: This script is deprecated, please run it with --help for info on registering the tool.", file=sys.stderr) | ||
| print(f"{PROG}: Run /opt/pbench-agent/tool-scripts/pcp --help for more info.", file=sys.stderr) | ||
| sys.exit(1) | ||
|
|
||
| if sys.argv[1] == "--help": | ||
| print(f"{PROG}: Options:", file=sys.stdout) | ||
| print(f"{PROG}: No tool-specific options currently", file=sys.stdout) | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.