Comments (7)
@cgnq @suclogger 我们现在准备弃用ons了,还不如直接用rocketmq。我们之前开发,测试环境用的都是ons,开发时候调试确实存在不便,必须要登录到aliyun去查看消息发送,消费状态。ons的api不太一样,我认为还是另起一个项目可能好点吧。
from rocketmq-spring-boot-starter.
我也很无奈,公司决定用ONS了,这个前提至少目前无法改变,我现在根据环境变量(dev,uat,prd,test等)来启动不同的api,但是也无法兼容所有的,只能用默认的consumer和Producer。另起一个starter就不太透明了。
from rocketmq-spring-boot-starter.
@cgnq @jaychang9
我们公司半年前就弃用ONS全部切到自建的RocketMQ(Docker环境)了,半年下来运行很稳定没出过问题。
替换掉ONS问题就是:
-
没有美观的控制台。我们的方案是自己封装了rocketmq-console模块,做了一些风格的统一。视觉框架
-
没了ONS中的查看具体消费者的功能。也在最近的 0.0.5 版本中通过添加ONS提供的jar包的中的相关代码做了类似实现。
所以目前我的立场也是推荐使用自建的RocketMQ,不过支持ONS也不会有很大问题,大家可以帮忙一起提交代码。
from rocketmq-spring-boot-starter.
@suclogger 今天我在docker环境试了下搭建,namesrv应该没什么问题,但是rmqbroker报了
alpine:/home/docker_build/rocketmq-docker/broker# docker logs rmqbroker
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000077ff49000000, 8589934592, 0) failed; error='Out of memory' (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
An error report file with more information is saved as:
/opt/rocketmq-4.1.0-incubating/bin/hs_err_pid8.log
一开始以为是jvm堆内存的问题,后来我配置了-Xxmx=512m -Xxms=512m,应该不是这个问题
查看了官方文档,提到了,linux的一个内核参数
`vm.max_map_count, limits the maximum number of memory map areas a process may have. RocketMQ will use mmap to load CommitLog and ConsumeQueue, so set a bigger value for this parameter is recommended.
`
我把docker宿主机的这个参数改了下
sysctl -w vm.max_map_count=262144
重新创建rmqbroker容器,还是不行。
https://bugs.openjdk.java.net/browse/JDK-8187709找到了这个链接,我用的也是openjdk
from rocketmq-spring-boot-starter.
今天搞了下rocketmq的docker环境,顺便把一些配置弄成一个github项目,方便以后使用,分享下https://github.com/jaychang9/rocketmq-docker broker,namesrv,console都有了,改自官网的external/docker。可支持本地开发机器连broker,将官方的java基镜像那个换成了openjdk-8u111-alpine,体积小一点
from rocketmq-spring-boot-starter.
I'm sorry but this feature won't be added.
But I'd be very happy to see a relate PR.
from rocketmq-spring-boot-starter.
什么时候阿里云的ONS集成进来
from rocketmq-spring-boot-starter.
Related Issues (20)
- 关于这次版本升级,提出的几点问题 HOT 7
- 同步刷盘timeout,项目是进行重新推送,但doAfterSyncSend却没有消息的内容无法重新推送 HOT 2
- 建议可通过配置设置VipChannelEnabled HOT 7
- 在springmvc中如何使用 HOT 1
- 怎么启动项目呢??? HOT 1
- 楼主这个项目支持事务消息吗? HOT 1
- 多个队列发送如何支持 HOT 1
- 事务消息发送支持 HOT 1
- 消费者每次只能接受到发送消息的四分之一 HOT 4
- 事务消息demo
- key怎么用? HOT 2
- 事务消息使用 HOT 1
- 关于 ConsumerGroup、Topic、Tags 的验证逻辑 HOT 2
- RocketMq消息轨迹的问题 HOT 1
- spring xml 风格的配置支持吗
- 设置消费线程池
- 启动后报循环依赖的问题
- 是否支持5.0
- 在SpringBoot3.1.5中无法使用 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocketmq-spring-boot-starter.