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

Add instructions for a standard kubernetes setup #217

Merged
merged 5 commits into from
Apr 19, 2020
Merged

Conversation

worldtiki
Copy link
Collaborator

📝 Description

Instructions for a standard kubernetes setup

@worldtiki worldtiki marked this pull request as ready for review April 17, 2020 19:48
@worldtiki worldtiki changed the title [Draft] Add instructions for a standard kube setup Add instructions for a standard kubernetes setup Apr 17, 2020
- name: SERVER_PORT
value: "9411"
- name: JAVA_JVM_ARGS
value: "-Dspring.jmx.enabled=true -XX:MaxRAMPercentage=80.0"
Copy link
Member

Choose a reason for hiding this comment

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

I see we've enabled JMX for metrics, but do we really need it?
Setting spring.jmx.enabled to true adds some overhead (see here) and wondering if it's useful or not.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the kafka metrics require this to be enabled :(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

regarding the metrics, there's folks using jmx agents to get metrics.

prometheus.io/port: "8081"
prometheus.io/path: "/actuator/prometheus"
spec:
terminationGracePeriodSeconds: 0
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs to be > preStop hook sleep duration. By default it's 30s.
Kubernetes waits for time=terminationGracePeriodSeconds and this happens in parallel to whatever we set in the preStop hook.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, you're right. i'll remove this line.

worldtiki and others added 3 commits April 18, 2020 18:01
Co-Authored-By: Nikos Katirtzis <nkatirtzis@expediagroup.com>
Co-Authored-By: Nikos Katirtzis <nkatirtzis@expediagroup.com>
@nikos912000 nikos912000 self-requested a review April 19, 2020 13:35
@worldtiki worldtiki merged commit a34a0b4 into master Apr 19, 2020
@worldtiki worldtiki deleted the kubernetes branch April 19, 2020 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants