Rate This Document
Findability
Accuracy
Completeness
Readability

"open files must not be less than 20000" Displayed During the OceanBase Cluster Startup

Symptom

The following message is displayed when the OceanBase cluster is started:

open files must be not be less than 20000(Current value: 1024)

Key Process and Cause Analysis

The maximum number of files in the configuration file is too small. As a result, when the number of opened files exceeds the maximum number, the operation fails.

Conclusion and Solution

  1. Run the following command on the server CLI:
    cat >> /etc/security/limits.conf << EOF 
    *       soft    nofile  655350 
    *       hard    nofile  655350 
    EOF
  2. Log in to the server again for the configuration in step 1 to take effect.
  3. Check the current value of open files.
    ulimit -n 

    If 655350 is returned, the configuration is successful.