我用3节点做了一个ELK堆栈,其中一个节点是主节点,两个是数据节点。假设我有大约1GB的数据来处理集群。我需要知道
我在Ubuntu平台上建了麋鹿堆。
系统1属性
系统2属性
系统3属性
由于有3个节点?( 3*3=9).Using Rest,所以我将碎片数设为9。
curl -X POST "http://localhost:9200/_template/default" -H 'Content-Type: application/json' -d'
{
"index_patterns": ["*"],
"order": -1,
"settings": {
"number_of_shards": "9",
"number_of_replicas": "1"
}
}
'我不知道它是对是错。
我需要做一个健康的集群。
是否有任何方法或参数来分配碎片、副本、RAM、磁盘空间等?
是否有任何方法根据文件大小找到理想数量的碎片?
每个节点必须分配多少CPU核心?
到目前为止,我引用了以下链接来构建麋鹿集群。
发布于 2019-04-26 05:51:07
碎片细节
通常,我们建议,如果您不期望数据有显著增长,那么:
One primary shard is fine if you have less than 100K documents
One primary shard per node is good if you have over 100K documents
One primary shard per CPU core is good if you have at least a couple million documents一个索引可以有多个碎片,但是任何给定的碎片都只能属于一个非特定的索引。
https://stackoverflow.com/questions/55847566
复制相似问题