From ba68b90f6d25b61be32cc58d61141bf7721cdc89 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Mon, 18 Jan 2021 15:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Enacos=E5=8C=97=E6=96=97=E8=BE=85?= =?UTF-8?q?=E5=8A=A9=E5=AE=9A=E4=BD=8D=E9=A1=B9=E7=9B=AE=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/BeidouAstPos.iml | 99 ++++++++++++++------------- pom.xml | 4 ++ setup_dev.sh | 4 +- src/main/resources/bootstrap-dev.yaml | 69 +++++++++++++++++++ 4 files changed, 125 insertions(+), 51 deletions(-) create mode 100644 src/main/resources/bootstrap-dev.yaml diff --git a/.idea/BeidouAstPos.iml b/.idea/BeidouAstPos.iml index 8d37387..1876644 100644 --- a/.idea/BeidouAstPos.iml +++ b/.idea/BeidouAstPos.iml @@ -18,25 +18,26 @@ - - - + + + + - - - - - + + + + + - - - - + + + + - - - + + + @@ -44,63 +45,63 @@ - + - - - + + + - + - + - + - - + + - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - + + + - - - + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3dd8917..3c856cf 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,10 @@ true + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + org.apache.commons diff --git a/setup_dev.sh b/setup_dev.sh index bf815d6..cd01441 100644 --- a/setup_dev.sh +++ b/setup_dev.sh @@ -4,7 +4,7 @@ mvn package -Dmaven.test.skip=true #image_version=$(date +%Y%m%d%H%M) image_version=$version -docker cp docker_jenkins:/var/jenkins_home/workspace/beidou_ast/target/beidouast.jar /usr/local/beidou_ast/beidou_ast.jar +docker cp docker_jenkins:/var/jenkins_home/workspace/BeidouAstPos/target/beidouast.jar /usr/local/beidou_ast/beidouast.jar #docker stop dipperposition_service || true #docker rm dipperposition_service || true @@ -60,5 +60,5 @@ docker cp docker_jenkins:/var/jenkins_home/workspace/beidou_ast/target/beidouast echo '=================启动NettyAPP=======================' ps -ef |grep beidou |awk '{print $2}'|xargs kill -9 -java -jar -Xms256m -Xmx256m -Xss256k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m /usr/local/beidou_ast/beidouast.jar +java -jar -Xms256m -Xmx256m -Xss256k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m /usr/local/beidou_ast/beidouast.jar --spring.profiles.active=dev echo '=================完成NettyAPP启动=======================' diff --git a/src/main/resources/bootstrap-dev.yaml b/src/main/resources/bootstrap-dev.yaml new file mode 100644 index 0000000..eafa131 --- /dev/null +++ b/src/main/resources/bootstrap-dev.yaml @@ -0,0 +1,69 @@ +logging: + config: classpath:log/logback-spring.xml + level: + com: + telpo: + dipperposition: debug +spring: + application: + name: dipperposition-service + redis: + database: 1 + host: 172.16.192.26 + port: 8090 + password: telpo#1234 + timeout: 3000 + lettuce: + pool: + max-active: 100 # 连接池最大连接数(使用负值表示没有限制) + max-idle: 100 # 连接池中的最大空闲连接 + min-idle: 50 # 连接池中的最小空闲连接 + max-wait: 6000 # 连接池最大阻塞等待时间(使用负值表示没有限制) + +scheduler: + pool: + size: 2 + #等待任务完成退出最大秒数 + await-seconds: 600 + task: + cron: "0 0 1 * * ?" + +pos: + centerProvinceFilePath: /csv/provinceLonAlt.csv + ipPositionRequestPath: https://restapi.amap.com/v3/ip + ipPositionRequestKey: 65e794b0a1a4b87eeec86f93fea05411 + centerProvince: 湖北省 + ast: + server: agnss.techtotop.com + ephAstPort: 8012 + ephAstHexPort: 9012 + timeout: 30000 + +position-server: + serverAddr: localhost + timeAsycPort: 9011 + posAsycPort: 9013 + starsAsycPort: 9012 + +mongo: + datasource: + dblist: + - uri: mongodb://wangjx:wangjx#1234@172.16.192.26:27017/basicdata + database: basicdata + - uri: mongodb://wangjx:wangjx#1234@172.16.192.26:27017/common + database: common + + +OkHttp-config: + pool: + max-conn: 200 + keep-alive: 5 + read-timeout: 10 + conn-timeout: 10 + write-timeout: 10 + +async: + pool: + corePoolSize: 4 + maxPoolSize: 8 + queueCapacity: 5000 \ No newline at end of file