#!/bin/bash
a=0
for i in {1..600}:
do
  sleep 1
  echo $[$(date +%s%N)/1000000]
  for i in {1..1000};
  do
    curl --insecure -L -v -k -H 'Content-Type: application/json' -H 'test_uuid: xhwtest' -X POST --data '{"microservice":"test","groupId":"KAFKA","mergeCount":"","appId":"test","urls":{"launchTasks":"/scheduler/launchTasks","queryTasks":"/scheduler/queryTasks","killTasks":"/scheduler/killTasks"}}' "https://172.18.1.182:17101/rest/router/v2/subsystem" --cert /home/paas/client.crt --key /home/paas/client.key -w '\n' &
    a=$(($a+1))
  done
  echo $[$(date +%s%N)/1000000]
  echo $a
done

Logo

Kafka开源项目指南提供详尽教程,助开发者掌握其架构、配置和使用,实现高效数据流管理和实时处理。它高性能、可扩展,适合日志收集和实时数据处理,通过持久化保障数据安全,是企业大数据生态系统的核心。

更多推荐