You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/29 11:31:12 UTC

[GitHub] [pulsar-client-node] goku321 opened a new issue #91: Thousands of producers are getting created

goku321 opened a new issue #91:
URL: https://github.com/apache/pulsar-client-node/issues/91


   Hi, I'm using node pulsar client to publish messages on a partitioned pulsar topic with 100 partitions. I'm spawning 20 node processes and reusing the same producer(I'm not closing the producer) that means there should be only 20 producers. But, when I see topic stats it shows a lot of producers (in thousands). What I'm doing wrong? Also, is there a difference b/w a producer and a publisher?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] sijie commented on issue #91: Thousands of producers are getting created

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #91:
URL: https://github.com/apache/pulsar-client-node/issues/91#issuecomment-636569673


   @goku321 Since you are using a partitioned topic with 100 partitions, you will have 100 sub-producers when constructing one producer. If you create 20 producers, you will have ~2000 producers.  Is this the behavior you are seeing? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] sijie commented on issue #91: Thousands of producers are getting created

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #91:
URL: https://github.com/apache/pulsar-client-node/issues/91#issuecomment-637181568


   @goku321 Can you run `pulsar-admin topics stats` to get the topic stats of a given topic partition? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] goku321 commented on issue #91: Thousands of producers are getting created

Posted by GitBox <gi...@apache.org>.
goku321 commented on issue #91:
URL: https://github.com/apache/pulsar-client-node/issues/91#issuecomment-636610528


   @sijie I'm actually seeing more producers than 2000. Attaching the screenshot:
   ![image](https://user-images.githubusercontent.com/12848015/83376726-02f0c200-a3f1-11ea-85f9-47e1545f0a71.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org