Code Monkey home page Code Monkey logo

Comments (8)

unixliang avatar unixliang commented on July 28, 2024

c899588
Fixed。请pull以上commit后重试。
原因是样例配置有误,导致3个consumer用了同一块共享内存。共享内存里保存的是consumer到队列的处理关系,所以3个consumer处理了同一批队列,导致部分队列没有consumer消费。

from phxqueue.

tinyshu avatar tinyshu commented on July 28, 2024

@unixliang git pull后也编译现了,现在连消息都收不到了

from phxqueue.

unixliang avatar unixliang commented on July 28, 2024

方便打包日志发送到 [email protected] 吗?

from phxqueue.

tinyshu avatar tinyshu commented on July 28, 2024

已经发送log到 phxteam邮箱了

from phxqueue.

unixliang avatar unixliang commented on July 28, 2024
$ grep 'ChildRun' consumer.0/*
consumer.0/test.iZuf6hx16c6lym9fxx51xcZ.root.log.INFO.20170916-203731.12931:I0916 20:37:31.094595 12931 logger_google.cpp:73]  INFO: PN8phxqueue8consumer8ConsumerE::ChildRun:481 INFO: start vpid 0
consumer.0/test.iZuf6hx16c6lym9fxx51xcZ.root.log.INFO.20170916-203731.12932:I0916 20:37:31.094126 12932 logger_google.cpp:73]  INFO: PN8phxqueue8consumer8ConsumerE::ChildRun:481 INFO: start vpid 1
$ grep 'ChildRun' consumer.1/*
consumer.1/test.iZuf6hx16c6lym9fxx51xcZ.root.log.INFO.20170916-203746.12938:I0916 20:37:46.119879 12938 logger_google.cpp:73]  INFO: PN8phxqueue8consumer8ConsumerE::ChildRun:481 INFO: start vpid 0
consumer.1/test.iZuf6hx16c6lym9fxx51xcZ.root.log.INFO.20170916-203746.12939:I0916 20:37:46.119526 12939 logger_google.cpp:73]  INFO: PN8phxqueue8consumer8ConsumerE::ChildRun:481 INFO: start vpid 1
$ grep 'ChildRun' consumer.2/*
consumer.2/test.iZuf6hx16c6lym9fxx51xcZ.root.log.INFO.20170916-203750.12946:I0916 20:37:50.740314 12946 logger_google.cpp:73]  INFO: PN8phxqueue8consumer8ConsumerE::ChildRun:481 INFO: start vpid 1

从日志看来,consumer.2有一个进程没启动(vpid 0)。
麻烦贴一下dmesg信息,重启consumer.2试试。

from phxqueue.

unixliang avatar unixliang commented on July 28, 2024

在我的环境中,kill掉任何一个处理进程(例如vpid 0),其父进程都会拉起新进程并继续处理,应该是符合设计预期的。

from phxqueue.

tinyshu avatar tinyshu commented on July 28, 2024

[root@iZuf6hx16c6lym9fxx51xcZ ~]# ps -ef | grep consumer_main
root 12928 9248 0 20:37 pts/1 00:00:00 bin/consumer_main -c etc/consumer_server.0.conf
root 12929 12928 0 20:37 pts/1 00:00:00 bin/consumer_main -c etc/consumer_server.0.conf
root 12930 12928 0 20:37 pts/1 00:00:00 bin/consumer_main -c etc/consumer_server.0.conf
root 12931 12928 0 20:37 pts/1 00:00:14 bin/consumer_main -c etc/consumer_server.0.conf
root 12932 12928 0 20:37 pts/1 00:00:15 bin/consumer_main -c etc/consumer_server.0.conf
root 12935 9380 0 20:37 pts/2 00:00:00 bin/consumer_main -c etc/consumer_server.1.conf
root 12936 12935 0 20:37 pts/2 00:00:00 bin/consumer_main -c etc/consumer_server.1.conf
root 12937 12935 0 20:37 pts/2 00:00:00 bin/consumer_main -c etc/consumer_server.1.conf
root 12938 12935 0 20:37 pts/2 00:00:14 bin/consumer_main -c etc/consumer_server.1.conf
root 12939 12935 0 20:37 pts/2 00:00:14 bin/consumer_main -c etc/consumer_server.1.conf
root 12942 9516 0 20:37 pts/3 00:00:00 bin/consumer_main -c etc/consumer_server.2.conf
root 12943 12942 0 20:37 pts/3 00:00:00 bin/consumer_main -c etc/consumer_server.2.conf
root 12944 12942 0 20:37 pts/3 00:00:00 bin/consumer_main -c etc/consumer_server.2.conf
root 12945 12942 0 20:37 pts/3 00:00:14 bin/consumer_main -c etc/consumer_server.2.conf
root 12946 12942 0 20:37 pts/3 00:00:14 bin/consumer_main -c etc/consumer_server.2.conf

vpid 0是什么了? 我ps看到consumer_main 在运行啊

from phxqueue.

tinyshu avatar tinyshu commented on July 28, 2024

@unixliang 又重启了一次好像可以了

from phxqueue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.