mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 10:25:07 +08:00
【fix】 使用线程池处理流量信息及业务
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Reference in New Issue
Block a user