Skip to content

Conversation

@elek
Copy link
Member

@elek elek commented Nov 7, 2019

What changes were proposed in this pull request?

The profiler servlet (which helps to run java profiler in the background and publishes the result on the web interface) requires privileged docker containers.

This flag is missing from the ozoneperf docker-compose cluster (which is designed to run performance tests).

What is the link to the Apache JIRA

https://github.com/elek/hadoop-ozone/pull/new/HDDS-2410

How was this patch tested?

cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozoneperf/
docker-compose up -d

firefox http://localhost:9876/prof

Execute the proposed kernel parameter adjustments:

echo 1 > /proc/sys/kernel/perf_event_paranoid
echo 0 > /proc/sys/kernel/kptr_restrict

Reponed http://localhost:9876/prof

After 10 seconds you should see the profiler flame graph

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @elek for this improvement, it works fine.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.
Thank You @adoroszlai for the review and @elek for the contribution.

@bharatviswa504 bharatviswa504 merged commit 93d0db4 into apache:master Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants