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

Added tuned profile for Nebula Graph #4255

Merged
merged 3 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conf/tuned/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Summary

These are tuned profile to configure the system to optimize for the Nebula Graph service.

Follow below steps to utilize:
* Install the tuned service if absent, and enable it with `systemctl`.
* Copy the __nebula__ directory into `/etc/tuned`.
* Execute `tuned-adm profile nebula` to activate the profile.
32 changes: 32 additions & 0 deletions conf/tuned/nebula/tuned.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[main]
summary=Optimize for Nebula Graph DBMS
include=latency-performance


[vm]
transparent_hugepages=never


[sysctl]
kernel.core_pattern=core
kernel.core_uses_pid=1
kernel.numa_balancing=0

vm.swappiness=0
vm.oom_dump_tasks=1
# min_free_kbytes is suggested to set to approximately 2% of the total memory.
# 1GB at least and 5GB at most.
vm.min_free_kbytes=5242880
vm.max_map_count=131060
vm.dirty_background_ratio = 3
vm.dirty_ratio = 20
vm.dirty_expire_centisecs = 500
vm.dirty_writeback_centisecs = 100

net.core.busy_read=50
net.core.busy_poll=50
net.core.somaxconn=4096
net.ipv4.tcp_max_syn_backlog=4096
net.core.netdev_max_backlog=10240
net.ipv4.tcp_fastopen=3
net.ipv4.tcp_slow_start_after_idle=0