The article was first published on the official account (Longtai's technical notes), and then synchronized to the personal website: xiaomage.info
Hippo-4J has been a month since the last version 1.2.1. During this period, 170+ commits were submitted by 8 contributors , and version 1.3.0 was officially released.
Note: This is a major upgrade for compatibility with historical versions .
Github : https://github.com/mabaiwan/hippo4j
Gitee : https://gitee.com/mabaiwancn/hippo4j
HIPPO-4J 1.3.0
Feature
- Add RabbitMQ thread pool monitoring and dynamic changes
- Add RocketMQ thread pool monitoring and dynamic changes
- Add Dubbo thread pool monitoring and dynamic changes
- Add SpringCloud Stream RocketMQ consumer thread pool monitoring and dynamic changes
Refactor
- Refactoring container thread pool query and modification functions
- Optimize the data change logic executed after the configuration center triggers the monitoring
Optimize
- Front-end console delete useless components
- The server page field does not display Chinese
- Console UI optimization
- Refresh list parameters in real time after modifying thread pool instance
- Container thread pool editing is limited to Admin privileges
- SpringBoot Starter change package path
BUG
- Fix SpringBoot Nacos dynamic refresh does not take effect
- Alarm configuration alarm=false Do not configure the notification alarm platform and the receiver to report an error
Three-party framework thread pool adaptation
The biggest feature release of Hippo-4J 1.3.0 is to develop a basic framework that adapts to the tripartite framework .
At present, the thread pool adaptation of Dubbo, RabbitMQ, RocketMQ, RocketMQ Spring CloudStream has been completed, and the thread pool adaptation of frameworks or middleware such as Kafka and Hystrix will be connected in the future.
Introduce the Jar package that adapts to the tripartite framework
After introducing the maven jar coordinates of the Hippo-4J server or core, you also need to introduce the corresponding framework adaptation jar:
<dependency>
<groupId>cn.hippo4j</groupId>
<!-- Dubbo -->
<artifactId>hippo4j-spring-boot-starter-adapter-dubbo</artifactId>
<!-- RabbitMQ -->
<artifactId>hippo4j-spring-boot-starter-adapter-rabbitmq</artifactId>
<!-- RocketMQ -->
<artifactId>hippo4j-spring-boot-starter-adapter-rocketmq</artifactId>
<!-- SpringCloud Stream RocketMQ -->
<artifactId>hippo4j-spring-boot-starter-adapter-spring-cloud-stream-rocketmq</artifactId>
<version>1.3.0</version>
</dependency>
If you want to import multiple jar packages, you can only import one full package. The bottom layer of the Hippo-4J framework will determine to load specific thread pool adapters according to the conditions of each middleware.
<dependency>
<groupId>cn.hippo4j</groupId>
<artifactId>hippo4j-spring-boot-starter-adapter-all</artifactId>
<version>1.3.0</version>
</dependency>
HIPPO-4J Server
After Hippo-4J server introduces the above adaptation jar package, you can view and modify the tripartite framework thread pool in the console of Hippo-4J server.
Click Edit to modify the underlying thread pool of the framework corresponding to the Java application.
Click the Modify All button to modify the thread pool configuration of all application instances under the current group.
After the modification is successful, the application console prints the following log, that is, the modification is successful.
[input] RocketMQ consumption thread pool parameter change. coreSize :: 1 => 10, maximumSize :: 1 => 10
HIPPO-4J Core
In addition to relying on the above adaptation Jar package, Hippo-4J core also needs to add the following configuration items in the configuration center.
spring:
dynamic:
thread-pool:
# 省略其它配置
adapter-executors:
# threadPoolKey 代表线程池标识
- threadPoolKey: 'input'
# mark 为三方线程池框架类型,参见文初已支持框架集合
mark: 'RocketMQSpringCloudStream'
corePoolSize: 10
maximumPoolSize: 10
Gitee GVP
Hippo-4J has received some valuable accolades for every member who has contributed to Hippo-4J.
Thanks to all the developers who contributed to Hippo-4J!
https://github.com/mabaiwan/hippo4j/graphs/contributors
final summary
Open source is not easy. If you guys have gained something after reading the Hippo-4J framework, I hope you can help me to click a star on Github and Gitee.
At present, there are 10+ companies using Hippo-4J in the production environment. If your company uses Hippo-4J, please register in the issue below, thank you.
Issue : https://github.com/mabaiwan/hippo4j/issues/13
Registering for use will not have any impact on the company, but only to expand Hippo-4J's influence and help it go further.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。