Can CentOS 7.x Use TuneD to Set Disk Schedulers?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: centos 7.x 能否使用 TuneD 设置磁盘调度程序

| username: xingzhenxiang

【TiDB Usage Environment】Production Environment
【TiDB Version】
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Can CentOS 7.x use TuneD to set the disk scheduler?】
【Resource Configuration】Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
【Attachments: Screenshot/Logs/Monitoring】

| username: 大飞哥online | Original post link

I haven’t studied it, you take a look :face_with_peeking_eye:

| username: Fly-bird | Original post link

Install tuned using yum

Modify the configuration file and reload the TuneD configuration.

| username: TiDBer_小阿飞 | Original post link

Redhat7 and CentOS7 have the tuned service installed and started by default. If not, you can manually install and start it.

| username: andone | Original post link

You need to modify the configuration file.

| username: xingzhenxiang | Original post link

:joy_cat: :joy_cat: :joy_cat:

| username: oceanzhang | Original post link

I haven’t studied it, hope you can share.

| username: xingzhenxiang | Original post link

I see that CentOS 7 supports this service, but the official Red Hat 7.0 documentation does not mention that it can be set up this way. This setup is for 8.0 and 9.0, so I want to ask if anyone in the CentOS 7 community has it running in a real environment.

| username: xingzhenxiang | Original post link

I also read the Red Hat documentation, and the tuning settings are mentioned in the 8.0 and 9.0 documentation. So I wanted to ask if this configuration can be applied on CentOS 7, or if any experts have already applied it online, and whether there are any issues.

| username: xingzhenxiang | Original post link

The key point is that the official documentation for Red Hat 7.0 does not include this configuration; it only appears in 8.0 and later versions. It’s not a matter of usage, but rather whether this configuration is supported and if there will be any issues after configuring it.

| username: xingzhenxiang | Original post link

What configurations need to be modified? Do you have practical experience in production?

| username: dba远航 | Original post link

The presence of this program in the system installation package indicates support.

| username: xingzhenxiang | Original post link

This method is only available in version 8.0 according to the official documentation. Have you tried it?

| username: dba远航 | Original post link

System feature: Components are only included in the system installation package after they have been tested and supported. Based on this, I just checked, and the installation package for version 7 does indeed include it.

| username: andone | Original post link

I haven’t studied it, please share.

| username: zhaokede | Original post link

Brothers who have studied and used it, please share your thoughts.

| username: xingzhenxiang | Original post link

Do any of the officials have an explanation for this?

| username: ShawnYan | Original post link

Do you have any special requirements? Generally, the default settings are fine.
For a new environment, you might want to consider a new system. CentOS 7 is quite outdated.

| username: xingzhenxiang | Original post link

I think the official documentation should also clarify this, as there are still many people using CentOS 7.