Opensearch或是Elasticsearch防止爬虫恶意采集较大数量时CPU过载

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2026-09-19 19:43
#!/bin/bash
# 自动配置脚本
curl -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
  "persistent": {
    "search.max_buckets": 10000,
    "indices.query.bool.max_clause_count":1024
  }
}'

如有开启安全密码可以用

curl -u admin:your_password -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
  "persistent": {
    "search.max_buckets": 10000,
    "indices.query.bool.max_clause_count": 1024
  }
}'

验证结果用以下命令

curl -s -X GET "localhost:9200/_cluster/settings?include_defaults=true&flat_settings=true" | grep -E "max_buckets|max_clause_count"


请登录已经激活账号继续浏此文章所有内容!
会员中心

已经有帐号啦 !赶紧同小伙伴们愉快地玩耍吧

立即登录

还没有账号? 马上注册一个新帐户

注册账号
热点标签:
内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

Opensearch或是Elasticsearch防止爬虫恶意采集较大数量时CPU过载 来源于 http://www.magentola.com/news-read-359.html
上一篇:Magento2 Varnish 经常性503解决方法
下一篇:没有了
相关内容
产品推荐