Is there a PING service for the Chat Server?
Our Admin team wants to know if there is a ping service for the chat server to poll the chat server and perform a health check. We tried to use the provision url, however since it needs credentials we cannot perform http status 200 check on this url. Any suggestions?
***Edited by Moderator Marissa to update SR Details***
-
Like (0)
-
Accepted Solution
We don't set any caching headers for browser, but if the browser is by default caching the static files, you can try the following route:
https://<chatServerHostName>/company/<CompanyToken>/settings
This above request will not be cached as its not a file.
Let me know if this works for you.
Hi,
Currently there is no health check API in Pega Chat Server. However, I think it is reasonable to have it, that is why I submitted feedback to the team that is working on this.
Regards,
Jakub
Hello,
Is there any URL that consistently returns the HTTP response code that can be used as a heartbeat? The team is unable to create a Netscaler VIP URL for the chat servers without a health check URL.
Thanks,
GT
Although we don't have a dedicated URL for heartbeat, you can use the following URL as a heartbeat:
https://<CHAT Server URL>/scripts/loaders/chatLoader.js
This returns a small javascript file and a consistent 200 OK response, as long as the chat server is up.
Since this url responds with a 304 Not Modified response after the first response the reason being it gets cached in browser, we would like to know if it can be used for healthcheck as it expects a http 200 response everytime.
Accepted Solution
We don't set any caching headers for browser, but if the browser is by default caching the static files, you can try the following route:
https://<chatServerHostName>/company/<CompanyToken>/settings
This above request will not be cached as its not a file.
Let me know if this works for you.