elasticsearch取消后台task

 

查看后台task
curl -u elastic:xxxxx -X GET "192.168.1.103:19200/_tasks?pretty"

 

查看具体的task

curl -u elastic:elastic -X GET "192.168.1.134:19200/_tasks/HEPkjUM_Sh27MMLXYY6J5g:58252270?pretty"

 


取消任务
curl -u elastic:xxx -X POST "192.168.1.103:19200/_tasks/sapuadVWTLmzqwk8f58Mxg:1861/_cancel?pretty"

 

查看删除的后台任务

curl -u elastic:elastic -X GET "192.168.1.134:19200/_tasks?detailed=true&actions=*/delete/byquery&pretty"

 

 

查看写入的情况
curl -u elastic:elastic -X GET "192.168.1.101:19200/_tasks?actions=*bulk*&detailed&pretty"

curl -u elastic:elastic -X GET "192.168.1.101:19200/_tasks?actions=*write*&detailed&pretty"

复制代码
      "tasks" : {
        "6m66YCRmTheTzR8CFyHVvg:5234" : {
          "node" : "6m66YCRmTheTzR8CFyHVvg",
          "id" : 5234,
          "type" : "transport",
          "action" : "indices:data/write/bulk[s]",
          "status" : {
            "phase" : "rerouted"
          },
          "description" : "requests[97], index[app_message_all]",
          "start_time_in_millis" : 1721121130893,
          "running_time_in_nanos" : 203873392,
          "cancellable" : false,
          "parent_task_id" : "6m66YCRmTheTzR8CFyHVvg:5231",
          "headers" : { }
        },
        "6m66YCRmTheTzR8CFyHVvg:5231" : {
          "node" : "6m66YCRmTheTzR8CFyHVvg",
          "id" : 5231,
          "type" : "transport",
          "action" : "indices:data/write/bulk",
          "description" : "requests[500], indices[app_message_all]",
          "start_time_in_millis" : 1721121130884,
          "running_time_in_nanos" : 213217706,
          "cancellable" : false,
          "headers" : { }
        }
      }
    }
  }
}
复制代码

 

posted @   slnngk  阅读(430)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示