mirror of
https://gitee.com/mmsAdmin/mms
synced 2025-12-07 01:18:23 +08:00
更新子模块
This commit is contained in:
parent
e99a148fb7
commit
c1faf73db4
103
mms-zoom/.gitignore
vendored
Normal file
103
mms-zoom/.gitignore
vendored
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
# Compiled class file
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Log file
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# BlueJ files
|
||||||
|
*.ctxt
|
||||||
|
|
||||||
|
# Mobile Tools for Java (J2ME)
|
||||||
|
.mtj.tmp/
|
||||||
|
|
||||||
|
# Package Files
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.nar
|
||||||
|
*.ear
|
||||||
|
*.zip
|
||||||
|
*.tar.gz
|
||||||
|
*.rar
|
||||||
|
|
||||||
|
# Eclipse & IntelliJ IDEA
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
|
.idea
|
||||||
|
.idea/
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
.settings
|
||||||
|
.project
|
||||||
|
.flattened-pom.xml
|
||||||
|
|
||||||
|
# Maven
|
||||||
|
target/
|
||||||
|
pom.xml.tag
|
||||||
|
pom.xml.releaseBackup
|
||||||
|
pom.xml.versionsBackup
|
||||||
|
pom.xml.next
|
||||||
|
release.properties
|
||||||
|
dependency-reduced-pom.xml
|
||||||
|
buildNumber.properties
|
||||||
|
.mvn/timing.properties
|
||||||
|
.mvn/wrapper/maven-wrapper.jar
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.gradle
|
||||||
|
.gradle/
|
||||||
|
build/
|
||||||
|
**/build/
|
||||||
|
bin/
|
||||||
|
!src/**/build/
|
||||||
|
gradle-app.setting
|
||||||
|
!gradle-wrapper.jar
|
||||||
|
.gradletasknamecache
|
||||||
|
gradle/wrapper/gradle-wrapper.properties
|
||||||
|
|
||||||
|
# VS Code
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# STS
|
||||||
|
.apt_generated
|
||||||
|
.factorypath
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
|
||||||
|
# NetBeans
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
# DB
|
||||||
|
/script/db/.back_sxpcwlkj/
|
||||||
|
/script/db/.version_sxpcwlkj/
|
||||||
|
!/script/db/.back_sxpcwlkj/
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
21
mms-zoom/LICENSE
Normal file
21
mms-zoom/LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025 mmsAdmin
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
18
mms-zoom/mms-monitor/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
18
mms-zoom/mms-monitor/.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
wrapperVersion=3.3.1
|
||||||
|
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
|
||||||
63
mms-zoom/mms-monitor/pom.xml
Normal file
63
mms-zoom/mms-monitor/pom.xml
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.sxpcwlkj</groupId>
|
||||||
|
<artifactId>mms-zoom</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<artifactId>mms-monitor</artifactId>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!-- SpringWeb模块 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.codecentric</groupId>
|
||||||
|
<artifactId>spring-boot-admin-starter-server</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- SBA客户端 整合-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.codecentric</groupId>
|
||||||
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!--健康检测扩展框架-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.version}</version>
|
||||||
|
<configuration>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
package com.sxpcwlkj.monitor;
|
||||||
|
|
||||||
|
import de.codecentric.boot.admin.server.config.EnableAdminServer;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
|
||||||
|
@EnableAdminServer
|
||||||
|
@SpringBootApplication
|
||||||
|
public class MmsMonitorApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(MmsMonitorApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
36
mms-zoom/mms-monitor/src/main/resources/application.yml
Normal file
36
mms-zoom/mms-monitor/src/main/resources/application.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
--- # SBA 服务端
|
||||||
|
server:
|
||||||
|
# 端口
|
||||||
|
port: 9001
|
||||||
|
--- # Spring项目名
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: MMS Monitor
|
||||||
|
|
||||||
|
--- # Spring Boot Admin
|
||||||
|
spring:
|
||||||
|
boot:
|
||||||
|
admin:
|
||||||
|
client:
|
||||||
|
enabled: true #启用/禁用
|
||||||
|
instance:
|
||||||
|
service-host-type: IP
|
||||||
|
# Spring Boot Admin
|
||||||
|
url: http://localhost:9001 #监控服务器端地址
|
||||||
|
username: admin #账号
|
||||||
|
password: 123456 #密码
|
||||||
|
|
||||||
|
--- # Actuator 监控端点的配置项
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
enabled-by-default: true #暴露所有端点信息
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: '*' #以web方式暴露
|
||||||
|
endpoint:
|
||||||
|
health:
|
||||||
|
show-details: ALWAYS
|
||||||
|
logfile:
|
||||||
|
external-file: ./logs/monitor-console.log
|
||||||
|
|
||||||
|
|
||||||
27
mms-zoom/mms-powerjob/Dockerfile
Normal file
27
mms-zoom/mms-powerjob/Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#FROM findepi/graalvm:java17-native
|
||||||
|
FROM openjdk:17.0.2-oraclelinux8
|
||||||
|
|
||||||
|
MAINTAINER SXPCWLKJ
|
||||||
|
|
||||||
|
RUN mkdir -p /sxpcwlkj \
|
||||||
|
/sxpcwlkj/mms-powerjob \
|
||||||
|
/sxpcwlkj/mms-powerjob/logs \
|
||||||
|
/sxpcwlkj/mms-powerjob/files \
|
||||||
|
/sxpcwlkj/mms-powerjob/temp \
|
||||||
|
/sxpcwlkj/mms-powerjob/skywalking/agent
|
||||||
|
|
||||||
|
WORKDIR /sxpcwlkj/mms-powerjob
|
||||||
|
|
||||||
|
ENV SERVER_PORT=7700 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
||||||
|
|
||||||
|
EXPOSE ${SERVER_PORT}
|
||||||
|
|
||||||
|
ADD ./target/mms-powerjob.jar ./app.jar
|
||||||
|
|
||||||
|
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
|
||||||
|
# 应用名称 如果想区分集群节点监控 改成不同的名称即可
|
||||||
|
#-Dskywalking.agent.service_name=sxpcwlkj-mms \
|
||||||
|
#-javaagent:/sxpcwlkj/mms/skywalking/agent/skywalking-agent.jar \
|
||||||
|
-jar app.jar \
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError -Xlog:gc*,:time,tags,level -XX:+UseZGC ${JAVA_OPTS}
|
||||||
|
|
||||||
91
mms-zoom/mms-powerjob/pom.xml
Normal file
91
mms-zoom/mms-powerjob/pom.xml
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.sxpcwlkj</groupId>
|
||||||
|
<artifactId>mms-zoom</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<artifactId>mms-powerjob</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<spring-boot.version>2.7.18</spring-boot.version>
|
||||||
|
<spring-boot-admin.version>2.7.11</spring-boot-admin.version>
|
||||||
|
</properties>
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>${spring-boot.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<!-- PowerJob server-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>tech.powerjob</groupId>
|
||||||
|
<artifactId>powerjob-server-starter</artifactId>
|
||||||
|
<version>${powerjob.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- SBA客户端 整合-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.codecentric</groupId>
|
||||||
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!--健康检测扩展框架-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>${maven-jar-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
<version>${maven-war-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
|
<warName>${project.artifactId}</warName>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
package com.sxpcwlkj;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.context.ConfigurableApplicationContext;
|
||||||
|
import org.springframework.core.env.Environment;
|
||||||
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||||
|
import tech.powerjob.server.common.utils.PropertyUtils;
|
||||||
|
|
||||||
|
import java.net.InetAddress;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description TODO
|
||||||
|
* @Author sxpcwlkj
|
||||||
|
* @Version v1.0.0
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@EnableScheduling
|
||||||
|
@SpringBootApplication(scanBasePackages = "tech.powerjob.server")
|
||||||
|
public class PowerJobServerApplication {
|
||||||
|
public static void main(String[] args) throws UnknownHostException {
|
||||||
|
PropertyUtils.init();
|
||||||
|
// SpringApplication.run(tech.powerjob.server.PowerJobServerApplication.class, args);
|
||||||
|
ConfigurableApplicationContext applicationContext = SpringApplication.run(tech.powerjob.server.PowerJobServerApplication.class, args);
|
||||||
|
Environment env = applicationContext.getEnvironment();
|
||||||
|
System.out.println("PowerJob启动成功,当前环境为: " + env.getProperty("spring.profiles.active"));
|
||||||
|
log.info("\n----------------------------------------------------------\n\t" +
|
||||||
|
"Application PowerJob is running! Access URLs:\n\t" +
|
||||||
|
"Local: \t\thttp://localhost:{}\n\t" +
|
||||||
|
"External: \thttp://{}:{}\n\t" +
|
||||||
|
"Doc: \t\t{}\n" +
|
||||||
|
"----------------------------------------------------------",
|
||||||
|
|
||||||
|
env.getProperty("server.port"),
|
||||||
|
InetAddress.getLocalHost().getHostAddress(),
|
||||||
|
env.getProperty("server.port"),
|
||||||
|
"https://www.yuque.com/powerjob/guidence/problem");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
oms.env=dev
|
||||||
|
|
||||||
|
####### Database properties(Configure according to the the environment) #######
|
||||||
|
spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
|
spring.datasource.core.jdbc-url=jdbc:mysql://113.141.95.138:3306/sxpcwlkj_mms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||||
|
spring.datasource.core.username=sxpcwlkj_mms
|
||||||
|
spring.datasource.core.password=dkfa7WNTbdDJB8ny
|
||||||
|
spring.datasource.core.maximum-pool-size=20
|
||||||
|
spring.datasource.core.minimum-idle=5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ===== Spring Boot Admin Server =====
|
||||||
|
spring.boot.admin.client.enabled=true
|
||||||
|
spring.boot.admin.client.instance.service-host-type=IP
|
||||||
|
spring.boot.admin.client.url=http://localhost:9001
|
||||||
|
spring.boot.admin.client.username=admin
|
||||||
|
spring.boot.admin.client.password=123456
|
||||||
|
|
||||||
|
####### MongoDB properties(Non-core configuration properties) #######
|
||||||
|
####### delete mongodb config to disable mongodb #######
|
||||||
|
oms.mongodb.enable=false
|
||||||
|
#spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
|
||||||
|
|
||||||
|
####### Email properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the mail #######
|
||||||
|
#spring.mail.host=smtp.163.com
|
||||||
|
#spring.mail.username=
|
||||||
|
#spring.mail.password=
|
||||||
|
#spring.mail.properties.mail.smtp.auth=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.enable=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.required=true
|
||||||
|
|
||||||
|
####### DingTalk properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the DingTalk #######
|
||||||
|
#oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
|
||||||
|
#oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
|
||||||
|
#oms.alarm.ding.agent-id=847044348
|
||||||
|
|
||||||
|
####### Resource cleaning properties #######
|
||||||
|
oms.instanceinfo.retention=1
|
||||||
|
oms.container.retention.local=1
|
||||||
|
oms.container.retention.remote=-1
|
||||||
|
|
||||||
|
####### Cache properties #######
|
||||||
|
oms.instance.metadata.cache.size=1024
|
||||||
|
|
||||||
|
####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
|
||||||
|
####### split-brain could be avoided while performance overhead would increase. #######
|
||||||
|
oms.accurate.select.server.percentage = 50
|
||||||
@ -0,0 +1,51 @@
|
|||||||
|
oms.env=local
|
||||||
|
|
||||||
|
####### ???????????????????????? #######
|
||||||
|
spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
|
spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/mms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||||
|
spring.datasource.core.username=root
|
||||||
|
spring.datasource.core.password=123456
|
||||||
|
spring.datasource.core.maximum-pool-size=20
|
||||||
|
spring.datasource.core.minimum-idle=5
|
||||||
|
|
||||||
|
|
||||||
|
# ===== Spring Boot Admin Server =====
|
||||||
|
spring.boot.admin.client.enabled=true
|
||||||
|
spring.boot.admin.client.instance.service-host-type=IP
|
||||||
|
spring.boot.admin.client.url=http://localhost:9001
|
||||||
|
spring.boot.admin.client.username=admin
|
||||||
|
spring.boot.admin.client.password=123456
|
||||||
|
|
||||||
|
####### mongoDB????????????? oms.mongodb.enable=false ??? #######
|
||||||
|
####### delete mongodb config to disable mongodb #######
|
||||||
|
oms.mongodb.enable=false
|
||||||
|
spring.data.mongodb.uri=mongodb://localhost:27017/powerjob-daily
|
||||||
|
|
||||||
|
####### Email properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the mail #######
|
||||||
|
|
||||||
|
####### ?????????????????????????? #######
|
||||||
|
#spring.mail.host=smtp.163.com
|
||||||
|
#spring.mail.username=
|
||||||
|
#spring.mail.password=
|
||||||
|
#spring.mail.properties.mail.smtp.auth=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.enable=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.required=true
|
||||||
|
|
||||||
|
####### DingTalk properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the DingTalk #######
|
||||||
|
#oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
|
||||||
|
#oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
|
||||||
|
#oms.alarm.ding.agent-id=847044348
|
||||||
|
|
||||||
|
####### Resource cleaning properties #######
|
||||||
|
oms.instanceinfo.retention=1
|
||||||
|
oms.container.retention.local=1
|
||||||
|
oms.container.retention.remote=-1
|
||||||
|
|
||||||
|
####### Cache properties #######
|
||||||
|
oms.instance.metadata.cache.size=1024
|
||||||
|
|
||||||
|
####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
|
||||||
|
####### split-brain could be avoided while performance overhead would increase. #######
|
||||||
|
oms.accurate.select.server.percentage = 50
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
oms.env=prod
|
||||||
|
|
||||||
|
####### Database properties(Configure according to the the environment) #######
|
||||||
|
spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
|
spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/sxpcwlkj_mms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||||
|
spring.datasource.core.username=sxpcwlkj_mms
|
||||||
|
spring.datasource.core.password=dkfa7WNTbdDJB8ny
|
||||||
|
spring.datasource.core.maximum-pool-size=20
|
||||||
|
spring.datasource.core.minimum-idle=5
|
||||||
|
|
||||||
|
|
||||||
|
# ===== Spring Boot Admin Server =====
|
||||||
|
spring.boot.admin.client.enabled=true
|
||||||
|
spring.boot.admin.client.instance.service-host-type=IP
|
||||||
|
spring.boot.admin.client.url=http://localhost:9001
|
||||||
|
spring.boot.admin.client.username=admin
|
||||||
|
spring.boot.admin.client.password=123456
|
||||||
|
|
||||||
|
####### MongoDB properties(Non-core configuration properties) #######
|
||||||
|
####### delete mongodb config to disable mongodb #######
|
||||||
|
oms.mongodb.enable=false
|
||||||
|
#spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
|
||||||
|
|
||||||
|
####### Email properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the mail #######
|
||||||
|
#spring.mail.host=smtp.163.com
|
||||||
|
#spring.mail.username=
|
||||||
|
#spring.mail.password=
|
||||||
|
#spring.mail.properties.mail.smtp.auth=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.enable=true
|
||||||
|
#spring.mail.properties.mail.smtp.starttls.required=true
|
||||||
|
|
||||||
|
####### DingTalk properties(Non-core configuration properties) #######
|
||||||
|
####### Delete the following code to disable the DingTalk #######
|
||||||
|
#oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
|
||||||
|
#oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
|
||||||
|
#oms.alarm.ding.agent-id=847044348
|
||||||
|
|
||||||
|
####### Resource cleaning properties #######
|
||||||
|
oms.instanceinfo.retention=7
|
||||||
|
oms.container.retention.local=7
|
||||||
|
oms.container.retention.remote=-1
|
||||||
|
|
||||||
|
####### Cache properties #######
|
||||||
|
oms.instance.metadata.cache.size=2048
|
||||||
|
|
||||||
|
####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
|
||||||
|
####### split-brain could be avoided while performance overhead would increase. #######
|
||||||
|
oms.accurate.select.server.percentage = 50
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
# Http server port
|
||||||
|
server.port=7700
|
||||||
|
spring.application.name=MMS PowerJob
|
||||||
|
spring.profiles.active=@profiles.active@
|
||||||
|
spring.main.banner-mode=log
|
||||||
|
spring.jpa.open-in-view=false
|
||||||
|
spring.data.mongodb.repositories.type=none
|
||||||
|
logging.level.org.mongodb=warn
|
||||||
|
logging.config=classpath:logback-plus.xml
|
||||||
|
|
||||||
|
# Configuration for uploading files.
|
||||||
|
spring.servlet.multipart.enabled=true
|
||||||
|
spring.servlet.multipart.file-size-threshold=0
|
||||||
|
spring.servlet.multipart.max-file-size=209715200
|
||||||
|
spring.servlet.multipart.max-request-size=209715200
|
||||||
|
|
||||||
|
###### PowerJob transporter configuration ######
|
||||||
|
oms.transporter.active.protocols=AKKA,HTTP
|
||||||
|
oms.transporter.main.protocol=HTTP
|
||||||
|
oms.akka.port=10086
|
||||||
|
oms.http.port=10010
|
||||||
|
# Prefix for all tables. Default empty string. Config if you have needs, i.e. pj_
|
||||||
|
oms.table-prefix=pj_
|
||||||
|
|
||||||
|
# Actuator \u76D1\u63A7\u7AEF\u70B9\u7684\u914D\u7F6E\u9879
|
||||||
|
management.endpoints.enabled-by-default=true
|
||||||
|
management.endpoints.web.exposure.include=*
|
||||||
|
management.endpoint.health.show-details=ALWAYS
|
||||||
|
management.endpoint.logfile.external-file=./logs/powerjob-console.log
|
||||||
|
management.health.mongo.enabled=${oms.mongodb.enable}
|
||||||
11
mms-zoom/mms-powerjob/src/main/resources/banner.txt
Normal file
11
mms-zoom/mms-powerjob/src/main/resources/banner.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Application Version: ${revision}
|
||||||
|
Spring Boot Version: ${spring-boot.version}
|
||||||
|
_ _
|
||||||
|
(_) | |
|
||||||
|
_ __ _____ _____ _ __ _ ___ | |__ ______ ___ ___ _ ____ _____ _ __
|
||||||
|
| '_ \ / _ \ \ /\ / / _ \ '__| |/ _ \| '_ \______/ __|/ _ \ '__\ \ / / _ \ '__|
|
||||||
|
| |_) | (_) \ V V / __/ | | | (_) | |_) | \__ \ __/ | \ V / __/ |
|
||||||
|
| .__/ \___/ \_/\_/ \___|_| | |\___/|_.__/ |___/\___|_| \_/ \___|_|
|
||||||
|
| | _/ |
|
||||||
|
|_| |__/
|
||||||
|
|
||||||
34
mms-zoom/mms-powerjob/src/main/resources/logback-plus.xml
Normal file
34
mms-zoom/mms-powerjob/src/main/resources/logback-plus.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration debug="false" scan="true" scanPeriod="1 seconds">
|
||||||
|
|
||||||
|
<contextName>logback</contextName>
|
||||||
|
<property name="log.path" value="./logs/mms-powerjob"/>
|
||||||
|
<property name="console.log.pattern"
|
||||||
|
value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/>
|
||||||
|
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"/>
|
||||||
|
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>${console.log.pattern}</pattern>
|
||||||
|
<charset>utf-8</charset>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}.log</file>
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<fileNamePattern>${log.path}.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="console"/>
|
||||||
|
<appender-ref ref="file"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
20
mms-zoom/pom.xml
Normal file
20
mms-zoom/pom.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.sxpcwlkj</groupId>
|
||||||
|
<artifactId>mms</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</parent>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<artifactId>mms-zoom</artifactId>
|
||||||
|
<description>三方扩展模块</description>
|
||||||
|
<modules>
|
||||||
|
<module>mms-powerjob</module>
|
||||||
|
<!-- <module>mms-generator</module>-->
|
||||||
|
<module>mms-monitor</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
</project>
|
||||||
Loading…
x
Reference in New Issue
Block a user