es 调整每个 node 最大 shard 数量

新集群 5 台机器

Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [4999]/[5000] maximum shards open;

默认每个node 1000个,则最多 5000 个 shard,满了导致不能创建新的 es index

{
  "persistent" : {
    "cluster" : {
      "max_shards_per_node" : "100000"
    },
    "search" : {
      "max_buckets" : "50000"
    }
  },
  "transient" : {
    "cluster" : {
      "max_shards_per_node" : "100000"
    },
    "search" : {
      "max_buckets" : "50000"
    }
  }
}

挂载远程 sftp 目录至 mac OSX 本机目录

安装所需 osxfuse

brew cask install osxfuse
brew install sshfs

把远程目录 /data/v 挂载到 ~/v 目录下

sshfs -p 22 -o reconnect -o volname=v -o IdentityFile=~/.ssh/id_rsa jpuyy@remotehost.com:/path/to/wherever /Volumes/SomeNiceName

参考:
https://jonathansblog.co.uk/sshfs-mount-remote-drive-in-finder