适用于对可用要求不高的场景,比如测试环境,开发者本地测试。
server支持注册中心有:
server支持多种存储方式
server支持对补偿任务的管理(quartz)
以下以注册中心[direct]+存储类型[memory]+任务部署类型[quartz集群模式]这种组合为例。
这里使用mysql数据库,脚本请查看
下载最新的安装包aggregate-framework-server-xxx.tar.gz,依次
创建server目录
makdir server
cd server
下载aggregate-framework-server-xxx.tar.gz,解压到server目录
server % tar zxvf aggregate-framework-server-4.0.0-SNAPSHOT.tar.gz
x conf/application.yaml
x lib/aggregate-framework-server.jar
x conf/
x conf/logback.xml
x bin/
x bin/startup.sh
x bin/startup.cmd
x bin/shutdown.sh
x bin/shutdown.cmd
server % tree
.
├── aggregate-framework-server-4.0.0-SNAPSHOT.tar.gz
├── bin
│ ├── shutdown.cmd
│ ├── shutdown.sh
│ ├── startup.cmd
│ └── startup.sh
├── conf
│ ├── application.yaml
│ └── logback.xml
└── lib
└── aggregate-framework-server.jar
3 directories, 8 files
server %
conf/application.yaml详细配置详见
以下以注册中心[direct]+存储类型[memory]+任务部署类型[quartz集群模式]这种组合为例。application.yaml可如下配置:
server:
port: 12332
servlet:
context-path: /${spring.application.name}
spring:
application:
name: aggregate-framework-server
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
agg:
storage:
storage-type: memory
recovery:
quartz-clustered: true
quartz-data-source-url: jdbc:mysql://localhost:3306/AGG_SERVER?useSSL=false&allowPublicKeyRetrieval=true
quartz-data-source-driver: com.mysql.jdbc.Driver
quartz-data-source-user: root
quartz-data-source-password: welcome1
registry:
registry-type: direct
remoting:
listen-port: 2332
logging:
level:
root: info
启动server
sh bin/startup.sh
停止server
sh bin/shutdown.sh