登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
Gitee AI
NEW
我知道了
查看详情
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
服务器应用
>
分布式服务/框架
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
16
Star
91
Fork
30
Ahoo-Wang
/
CoSky
代码
Issues
1
Pull Requests
0
Wiki
统计
流水线
服务
Gitee Pages
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
我知道了,不再自动展开
发行版
最新版
v4.2.0
d198f48
2023-11-20 15:10
对比
v4.2.0
Ahoo-Wang
## 更新内容 🎉 🎉 🎉 > 全面兼容 *Spring Boot 3* - 依赖:更新 `org.springframework.boot:spring-boot-dependencies` 版本 `v3.1.5` - 依赖:更新 `Angular` 版本到 v17 - 重构:优化管理控制台(UI)样式 - 特新:新增登陆用户水印 - 依赖:更新 `io.mockk:mockk` 版本 `v1.13.8 ` - 依赖:更新 [CosId](https://github.com/Ahoo-Wang/CosId) 版本 `v2.5.6` - 依赖:使用 [CoSec](https://github.com/Ahoo-Wang/CoSec) 版本 `v2.4.3` - 依赖:更新 `Kotlin` 版本 `v1.9.20`
最后提交信息为:
feat: Optimize management console(UI) style (#299)
v3.3.5
4a0263a
2023-03-25 14:56
对比
v3.3.5
Ahoo-Wang
## 更新内容(v3.3.5) 🎉 🎉 🎉 - 依赖:更新 `Angular` 版本到 v15 - 依赖:更新 `org.springframework.boot:spring-boot-dependencies` 到 v2.7.10 - 依赖:更新 `monaco-editor` 到 ^0.36.0 - 依赖:更新 [CosId](https://github.com/Ahoo-Wang/CosId) 到 v1.18.5 - 重构:使用 [CoSec](https://github.com/Ahoo-Wang/CoSec) 替换内置安全认证服务
最后提交信息为:
Update dependency jasmine-core to ~4.6.0 (#124)
v2.0.1
09d303b
2022-05-31 20:31
对比
v2.0.1
Ahoo-Wang
## What's Changed * Update dependency CosId to `1.12.0` * Update dependency Spring-Boot to `2.6.8` * Update dependency Spring-Cloud to `2021.0.3` * Update dependency Guava to `31.1-jre` * Update dependency karma-coverage to v2.2.0 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/25 * Update dependency @types/jasmine to v3.10.6 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/33 * Update dependency jasmine-core to v4 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/36 * Update dependency ts-node to v8.10.2 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/27 * Use `spring-data-redis` instead of `lettuce-core` as the `Redis` client to improve user experience. * Configure Renovate by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/17 * Update plugin me.champeau.jmh to v0.6.6 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/21 * Update dependency @types/jasmine to v3.10.5 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/22 * Update dependency org.springframework.cloud:spring-cloud-starter-netflix-ribbon to v2.2.10.RELEASE by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/19 * Update dependency gradle to v7.4.2 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/23 * Update dependency jasmine-core to v3.99.1 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/24 * Update actions/checkout action to v3 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/29 * Update dependency typescript to v4.6.3 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/28 * Update actions/setup-java action to v3 by @renovate in https://github.com/Ahoo-Wang/CoSky/pull/30
最后提交信息为:
* Update dependency CosId to
1.12.0
v1.3.20
1d1e313
2022-03-09 20:57
对比
v1.3.20
Ahoo-Wang
## ⭐ Refactor - compress jwt-token Id - update file header license Copyright [2021-present] - add integration-test.yml(CI) - remove useless @EnableScheduling ## 🔨 Dependency Upgrades - Upgrade to [Simba](https://github.com/Ahoo-Wang/Simba) 0.2.6 - Upgrade to [CosId](https://github.com/Ahoo-Wang/CosId) 1.8.9
最后提交信息为:
- update version
v1.3.11
8dba0f6
2021-12-18 14:23
对比
v1.3.11
Ahoo-Wang
- add `Comparison with others` section. - replace `io.codearte.nexus-staging` -> `io.github.gradle-nexus.publish-plugin` - update `cosid` version to `1.4.15` - update `simba` version to `0.2.5` - add distributed scheduling(`StatServiceScheduler`) by `Simba`
最后提交信息为:
update dokcer image version
1.3.10
64f3431
2021-11-01 20:55
对比
1.3.10
Ahoo-Wang
- 修改 **cosky-rest-api** Spring-Boot-banner ![CoSky-Banner](https://images.gitee.com/uploads/images/2021/1101/205143_e1b882bf_384561.png "CoSky-Banner") - 暴露 `/actuator/health` 用于健康检查 - 新增 `*Probe` for K8S-Deployment - 修复 LoadBalancer 重复注册监听服务实例变化的问题 - 优化 `AuthorizeService` 代码 - 修复 **cosky-rest-api** 登陆锁定问题
最后提交信息为:
change cosky-rest-api banner
1.3.1
685ffec
2021-08-25 21:41
对比
1.3.1
Ahoo-Wang
## ALL IN reactive programming model ! 🎉🎉🎉🎉🎉 - 变更:修改异步API为响应式编程API. - 变更:使用`WebFlux`作为`cosky-rest-api`的Web编程框架. - 修复:导出配置文件报告401授权异常 ( **Dashboard-UI** ).
最后提交信息为:
Merge pull request #15 from Ahoo-Wang/reactor
1.2.10
c6916f5
2021-08-03 11:20
对比
1.2.10
Ahoo-Wang
- 增强: 拆分服务依赖拓扑图(Dashboard),便于阅读。 ![服务依赖拓扑图](https://images.gitee.com/uploads/images/2021/0803/112009_45951990_384561.png "dashboard-topology.png")
最后提交信息为:
- Visual enhancement: split service dependent topology (Dashboard)
1.2.9
337dab8
2021-08-03 09:26
对比
1.2.9
Ahoo-Wang
- 修复 `Redis 5.0` 以下版本不兼容的问题。
最后提交信息为:
fix
https://github.com/Ahoo-Wang/CoSky/issues/12
1.2.8
75c95be
2021-07-22 00:56
对比
1.2.8
Ahoo-Wang
- 增强:当使用 *Redis* 集群模式时,支持自动将 `namespace`转换成 `hashtag` key。 - 增强:支持防御性参数校验,增强代码鲁棒性。
最后提交信息为:
update version
1.2.5
29d340f
2021-07-20 23:56
对比
1.2.5
Ahoo-Wang
- 增强:新增支持服务订阅关系拓扑。 ![Service-Topology](https://images.gitee.com/uploads/images/2021/0720/235303_11f1f503_384561.png "Service-Topology.png") ![Service-Topology-1](https://images.gitee.com/uploads/images/2021/0720/235323_ea64d0f8_384561.png "Service-Topology-1.png") - 增强:添加支持操作审计日志。 ![dashboard-audit-log](https://images.gitee.com/uploads/images/2021/0720/235414_7b22caa5_384561.png "dashboard-audit-log.png")
最后提交信息为:
update Service dependency topology diagram
1.2.1
db231b1
2021-07-17 11:10
对比
1.2.1
Ahoo-Wang
- 添加保留角色(`Role.ADMIN`)说明 - 依赖更新:更新分布式ID生成器 (`CosId`) 版本依赖 *1.3.1* -> *1.3.2*
最后提交信息为:
- Add reserved role(
Role.ADMIN
) description
1.2.0
fd2fb61
2021-07-15 21:52
对比
1.2.0
Ahoo-Wang
# 新增基于角色的访问控制(RBAC)安全模块 ## 基于角色的访问控制(RBAC) - cosky: 保留用户名,超级用户,拥有最高权限。应用首次启动时会初始化超级用户(*cosky*)的密码,并打印在控制台。忘记密码也不用担心,可以通过配置 `enforce-init-super-user: true`,*CoSky* 会帮助你重新初始化密码并打印在控制台。 ```log ---------------- ****** CoSky - init super user:[cosky] password:[6TrmOux4Oj] ****** ---------------- ``` - admin: 保留角色,超级管理员角色,拥有所有权限,一个用户可以绑定多个角色,一个角色可以绑定多个资源操作权限。 - 权限控制粒度为命名空间,读写操作 ### 角色权限 ![dashboard-role](https://images.gitee.com/uploads/images/2021/0715/214911_19a9085a_384561.png "dashboard-role.png") #### 添加角色 ![dashboard-role-add](https://images.gitee.com/uploads/images/2021/0715/214932_72c1973f_384561.png "dashboard-role-add") ### 用户管理 ![dashboard-user](https://images.gitee.com/uploads/images/2021/0715/215011_0de38b44_384561.png "dashboard-user.png") #### 添加用户 ![dashboard-user-add](https://images.gitee.com/uploads/images/2021/0715/215030_80a20668_384561.png "dashboard-user-add.png")
最后提交信息为:
Merge pull request #8 from Ahoo-Wang/rbac
1.0.0
4d743de
2021-05-30 21:36
对比
1.0.0
Ahoo-Wang
## :tada: :tada: :tada: :tada: :tada: :tada: 1. Project name changed to **CoSky**(**Co**n**s**ul + S**ky**)!!! :tada: 2. Release 1.0.0 version, production-level verification!!! :tada:
最后提交信息为:
##
0.9.3
01d670b
2021-05-15 11:39
对比
0.9.3
Ahoo-Wang
# Govern Service 基于 Redis 的服务治理平台(服务注册/发现 & 配置中心) ## REST-API Server (``Optional``) ### 安装 REST-API Server #### 方式一:下载可执行文件 > 下载 [rest-api-server](https://github.com/Ahoo-Wang/govern-service/releases/download/0.9.3/rest-api-0.9.3.tar) > 解压 *rest-api-0.9.3.tar* ```shell cd rest-api-0.9.3 # 工作目录: rest-api-0.9.3 bin/rest-api --server.port=8080 --govern.redis.uri=redis://localhost:6379 ``` #### 方式二:Docker run ```shell docker pull ahoowang/govern-service:0.9.3 docker run --name govern-service -d -p 8080:8080 --link redis -e GOVERN_REDIS_URI=redis://redis:6379 ahoowang/govern-service:0.9.3 ``` --- > MacBook Pro (M1) > > 请使用 *ahoowang/govern-service:0.9.3-armv7* ```shell docker pull ahoowang/govern-service:0.9.3-armv7 docker run --name govern-service -d -p 8080:8080 --link redis -e GOVERN_REDIS_URI=redis://redis:6379 ahoowang/govern-service:0.9.3-armv7 ``` --- ![输入图片说明](https://images.gitee.com/uploads/images/2021/0515/114206_f1ea1352_384561.png "dashboard-dashboard.png")
最后提交信息为:
add DashboardConfig for fix dashboard-ui 404
0.7.1
6f021ff
2021-04-29 00:29
对比
Govern Service On Redis (Service Discovery and Configuration Service)
Ahoo-Wang
# Govern Service On Redis (Service Discovery and Configuration Service) *Govern Service* is a lightweight, low-cost service registration, service discovery, and configuration service SDK. By using Redis in the existing infrastructure (I believe you have already deployed Redis), it doesn’t need to bring extra to the operation and maintenance deployment. Cost and burden. With the high performance of Redis, *Govern Service* provides ultra-high TPS&QPS. *Govern Service* combines the process cache strategy + *Redis PubSub* to achieve real-time process cache refresh, with unparalleled QPS performance and real-time consistency between process cache and Redis. ## Redis configuration requirements ``` notify-keyspace-events "Kg$shx" ``` > You can use the following command line (redis-cli or any other redis-client) to set `notify-keyspace-events` ```shell config set notify-keyspace-events "Kg$shx" ``` or ```shell config set notify-keyspace-events "KA" ``` ## Installation ### Gradle ``` kotlin val governVersion = "0.7.1"; implementation("me.ahoo.govern:spring-cloud-starter-config:${governVersion}") implementation("me.ahoo.govern:spring-cloud-starter-discovery:${governVersion}") ``` ### Maven ```xml <properties> <govern.version>0.7.1</govern.version> </properties> <dependencies> <dependency> <groupId>me.ahoo.govern</groupId> <artifactId>spring-cloud-starter-config</artifactId> <version>${govern.version}</version> </dependency> <dependency> <groupId>me.ahoo.govern</groupId> <artifactId>spring-cloud-starter-discovery</artifactId> <version>${govern.version}</version> </dependency> </dependencies> ``` ### bootstrap.yml (Spring-Cloud-Config) ```yaml spring: application: name: govern-rest-api cloud: govern: namespace: dev config: config-id: ${spring.application.name}.yml redis: mode: standalone url: redis://localhost:6379 ``` ## REST-API Server (``Optional``) ```shell bin/rest-api ``` > http://localhost:8080/swagger-ui/index.html#/ ### Namespace ![rest-api-namespace](https://gitee.com/AhooWang/govern-service/raw/main/docs/rest-api-namespace.png) - /v1/namespaces - GET - /v1/namespaces/{namespace} - PUT - GET - /v1/namespaces/current - GET - /v1/namespaces/current/{namespace} - PUT ### Config ![rest-api-config](https://gitee.com/AhooWang/govern-service/raw/main/docs/rest-api-config.png) - /v1/namespaces/{namespace}/configs - GET - /v1/namespaces/{namespace}/configs/{configId} - GET - PUT - DELETE - /v1/namespaces/{namespace}/configs/{configId}/versions - GET - /v1/namespaces/{namespace}/configs/{configId}/versions/{version} - GET - /v1/namespaces/{namespace}/configs/{configId}/to/{targetVersion} - PUT ### Service ![rest-api-service](https://gitee.com/AhooWang/govern-service/raw/main/docs/rest-api-service.png) - /v1/namespaces/{namespace}/services/ - GET - /v1/namespaces/{namespace}/services/{serviceId}/instances - GET - PUT - /v1/namespaces/{namespace}/services/{serviceId}/instances/{instanceId} - DELETE - /v1/namespaces/{namespace}/services/{serviceId}/instances/{instanceId}/metadata - PUT ## JMH Benchmark - The development notebook : MacBook Pro (M1) - All benchmark tests are carried out on the development notebook. - Deploying Redis with docker on the development notebook. ``` shell gradle jmh ``` ### ConfigService ``` # JMH version: 1.28 # VM version: JDK 11.0.11, OpenJDK 64-Bit Server VM, 11.0.11+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/govern-service/config/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint # Warmup: 1 iterations, 10 s each # Measurement: 1 iterations, 10 s each # Timeout: 10 min per iteration # Threads: 50 threads, will synchronize iterations # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units ConsistencyRedisConfigServiceBenchmark.getConfig thrpt 555275866.836 ops/s RedisConfigServiceBenchmark.getConfig thrpt 57397.188 ops/s RedisConfigServiceBenchmark.setConfig thrpt 56882.673 ops/s ``` ### ServiceDiscovery ``` # JMH version: 1.29 # VM version: JDK 11.0.11, OpenJDK 64-Bit Server VM, 11.0.11+9-LTS # VM invoker: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java # VM options: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/Users/ahoo/work/ahoo-git/govern-service/discovery/build/tmp/jmh -Duser.country=CN -Duser.language=zh -Duser.variant # Blackhole mode: full + dont-inline hint # Warmup: 1 iterations, 10 s each # Measurement: 1 iterations, 10 s each # Timeout: 10 min per iteration # Threads: 50 threads, will synchronize iterations # Benchmark mode: Throughput, ops/time Benchmark Mode Cnt Score Error Units ConsistencyRedisServiceDiscoveryBenchmark.getInstances thrpt 567329996.255 ops/s ConsistencyRedisServiceDiscoveryBenchmark.getServices thrpt 1929377291.635 ops/s RedisServiceDiscoveryBenchmark.getInstances thrpt 43760.035 ops/s RedisServiceDiscoveryBenchmark.getServices thrpt 60953.971 ops/s RedisServiceRegistryBenchmark.deregister thrpt 63133.011 ops/s RedisServiceRegistryBenchmark.register thrpt 53957.797 ops/s RedisServiceRegistryBenchmark.renew thrpt 67116.116 ops/s ``` ## TODO 1. Dashboard - UI
最后提交信息为:
optimize applicationDefaultJvmArgs for rest-api
下载
请输入验证码,防止盗链导致资源被占用
取消
下载
Kotlin
1
https://gitee.com/AhooWang/CoSky.git
git@gitee.com:AhooWang/CoSky.git
AhooWang
CoSky
CoSky
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册