Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
K
kb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • granite
  • kb
  • Wiki
    • Best_practice
    • Elasticsearch
  • ES运维

ES运维 · Changes

Page history
Create best_practice/elasticsearch/ES运维 authored Apr 27, 2022 by 吴一博's avatar 吴一博
Hide whitespace changes
Inline Side-by-side
Showing with 37 additions and 0 deletions
+37 -0
  • best_practice/elasticsearch/ES运维.md best_practice/elasticsearch/ES运维.md +37 -0
  • No files found.
best_practice/elasticsearch/ES运维.md 0 → 100644
View page @ edcd0d26
通过手动迁移shard临时解决热点数据分布不均匀问题
[阿里云文档](https://help.aliyun.com/document_detail/190319.html)
```
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "none"
}
}
POST /_cluster/reroute
{
"commands" : [
{
"move" : {
"index" : "api-shuidi-log-2022.04.25",
"shard" : 0,
"from_node" : "10.8.6.107",
"to_node" : "10.8.6.112"
}
}
]
}
GET _cat/shards?v
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}
···
\ No newline at end of file
Clone repository
  • README
  • basic_guidelines
  • basic_guidelines
    • basic_guidelines
    • dev_guide
    • project_build
    • 开发流程
  • best_practice
  • best_practice
    • AlterTable
    • RDS
    • azkaban
    • create_table
    • design
    • elasticsearch
    • elasticsearch
      • ES运维
    • logstash
View All Pages