【fix】 使用线程池处理流量信息及业务

This commit is contained in:
wujiawei
2024-09-03 16:37:46 +08:00
parent 58aae7a67d
commit b9d75715de
13 changed files with 141 additions and 31 deletions

View File

@ -40,7 +40,7 @@ docker run -d -it --privileged --name client -p 6004:6004 registry.cn-hangzhou.a
```yaml
# 只在 worker 节点执行
# 替换 x.x.x.x 为 master 节点的内网 IP
export MASTER_IP=124.222.48.62
export MASTER_IP=124.222.152.160
# 替换 apiserver.demo 为初始化 master 节点时所使用的 APISERVER_NAME
export APISERVER_NAME=apiserver.demo
echo "${MASTER_IP} ${APISERVER_NAME}" >> /etc/hosts

View File

@ -1,5 +1,6 @@
package org.framework.lazy.cloud.network.heartbeat.client;
import io.netty.util.internal.PlatformDependent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.wu.framework.lazy.orm.core.stereotype.LazyScan;
@ -12,6 +13,11 @@ import org.wu.framework.lazy.orm.core.stereotype.LazyScan;
@SpringBootApplication
public class LazyCloudHeartbeatClientStart {
public static void main(String[] args) {
String normalizedArch = PlatformDependent.normalizedArch();
String normalizedOs = PlatformDependent.normalizedOs();
System.out.println("normalizedArch: " + normalizedArch+"\nnormalizedOs: " + normalizedOs);
SpringApplication.run(LazyCloudHeartbeatClientStart.class,args);
}
}

View File

@ -16,4 +16,9 @@ spring:
# client:
# client-id: 1024
# inet-host: 127.0.0.1
# inet-port: 7101
# inet-port: 7101
---
logging:
level:
root: DEBUG