Got it

Data recovery is slow after the ES cluster is restarted.

Latest reply: Aug 15, 2019 00:48:24 557 1 14 0 0

Symptom

When the ES cluster has a large amount of data, restarting the ES cluster causes slow data recovery and instance faults.

Solution

1. Check memory configuration parameters.

Log in to the FusionInsight Manager and choose Elasticsearch > Service Configuration. On the service configuration page that is displayed, search for GC_OPTS.

Check the values of -Xms and -Xmx. The values of the two parameters must be the same.

The recommended values of -Xms and -Xmx for a single instance are as follows: Total memory of the node /2/ Number of real numbers on the node. If the value is greater than 31G, you are advised to set this parameter to 31G.

2. Set parameters by referring to https://forum.huawei.com/enterprise/en/Data-Cannot-Be-Recovered-After-the-ES-Cluster-Is-Restarted-for-a-Large-Amount-of-Data/thread/544257-899.

3.Log in to the FusionInsight Manager and choose Elasticsearch > Service Configuration. On the Service Configuration page that is displayed, choose Configuration > All Configuration > Customized and add the following customized parameters: cluster.routing.allocation.node_initial_primaries_recoveries 120

cluster.routing.allocation.node_concurrent_recoveries 60

cluster.routing.allocation.cluster_concurrent_rebalance 60

4. Run the following command to query the cluster status and wait until the cluster status changes to green:

Run the following command in common mode: curl -XGET "http://IP:HTTPPORT/_cluster/health?pretty"

Run the following command in security mode: curl -XGET --negotiate -k -u: "https://IP:HTTPPORT/_cluster/health?pretty"


Data recovery is slow
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.