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 @ 2023-06-20 16:11  slnngk  阅读(392)  评论(0编辑  收藏  举报