<@U078Y59KC3B> Do pulsar proxy have any endpoint w...
# ask-ai
e
@RunLLM Do pulsar proxy have any endpoint without auth that health check againt broker
r
Yes, the Pulsar proxy has an endpoint for health checks that does not require authentication by default. You can configure this behavior using the
authenticateMetricsEndpoint
setting in the proxy configuration. By default, this setting is
false
, meaning the
/metrics
endpoint does not require authentication. For more information, see the Pulsar proxy documentation. Would you like more detail on configuring this setting? Sources: - Pulsar proxy documentation 👍 0 button 👎 1 button 💡 Hint: Mention @RunLLM in the thread for followups.
e
@RunLLM any endpoint that return non 200 if broker is not health
r
Yes, Pulsar provides a health check endpoint that returns a non-200 status code if the broker is not healthy. The endpoint is
/admin/v2/brokers/health
, and it can be accessed using the Pulsar Admin CLI or directly via HTTP. For example, using the Pulsar Admin CLI:
Copy code
pulsar-admin brokers healthcheck
Or via HTTP:
Copy code
curl -X GET http://localhost:8080/admin/v2/brokers/health
A healthy broker will return a status code of 200 with the response "ok". If the broker is not healthy, it will return a different status code. Would you like more details on how to use this endpoint? Sources: - Pulsar Admin CLI - Broker Health Check API 👍 0 button 👎 1 button 💡 Hint: Mention @RunLLM in the thread for followups.
e
@RunLLM any endpoint that return non 200 if broker is not health and without auth
r
Pulsar does not provide an endpoint that returns a non-200 status code if the broker is not healthy and does not require authentication by default. The health check endpoint
/admin/v2/brokers/health
requires super-user permissions to access. For more information, see the Pulsar Admin CLI documentation and StreamNative Pulsarctl documentation. Would you like more details on configuring authentication for health checks? Sources: - Pulsar Admin CLI documentation - StreamNative Pulsarctl documentation 👍 1 button 👎 0 button 💡 Hint: Mention @RunLLM in the thread for followups.
e
@RunLLM can proxy reject connection when no active broker?
r
Yes, the Pulsar proxy can reject connections when there are no active brokers. This is achieved through the proxy's configuration and behavior. If the proxy cannot resolve any active broker addresses, it will fail to establish a connection and reject client requests. For example, if the proxy cannot resolve the broker address due to DNS issues or if all brokers are down, it will log an error and reject the connection attempt. This can be configured and observed through the proxy logs. For more information, see the Pulsar proxy documentation. Would you like more details on configuring this behavior? Sources: - Pulsar proxy documentation 👍 0 button 👎 1 button 💡 Hint: Mention @RunLLM in the thread for followups.