You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "rdhabalia (GitHub)" <gi...@apache.org> on 2018/08/22 20:57:10 UTC

[GitHub] [incubator-pulsar] rdhabalia opened pull request #2424: Support heartbeat function for worker

### Motivation

We want to setup a sanity-test for each worker by submitting a function and perform a heartbeat test for the worker. We have similar heartbeat namespace at pulsar-broker as well to check broker-state. So, introducing heartbeat function which can be only owned by a specific worker so, we can setup a sanity test for worker in the cluster.

#### Heartbeat function
1. If a function is created under tenant=`pulsar-function` and namespace=`heartbeat` then worker will consider it as a heartbeat function and function-name will be considered as a `worker-id` so, that function will be only assigned to that worker-id.
2. Now, admin can submit a sanity-function to specific worker and perform sanity test on that worker.



[ Full content available at: https://github.com/apache/incubator-pulsar/pull/2424 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [incubator-pulsar] rdhabalia commented on pull request #2424: Support heartbeat function for worker

Posted by "rdhabalia (GitHub)" <gi...@apache.org>.
it was a bug actually, if multiple worker instances start on the same host but different port then it doesn't create unique workerId and it was resulting into incorrect assignment. Therefore, it is part of bug-fix also.

[ Full content available at: https://github.com/apache/incubator-pulsar/pull/2424 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [incubator-pulsar] srkukarni commented on pull request #2424: Support heartbeat function for worker

Posted by "srkukarni (GitHub)" <gi...@apache.org>.
This change has implications for other places where both workerId and workerport are being used. Maybe add a seperate function?

[ Full content available at: https://github.com/apache/incubator-pulsar/pull/2424 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [incubator-pulsar] rdhabalia closed pull request #2424: Support heartbeat function for worker

Posted by "rdhabalia (GitHub)" <gi...@apache.org>.
[ pull request closed by rdhabalia ]

[ Full content available at: https://github.com/apache/incubator-pulsar/pull/2424 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org