health check with Crossbar

#1

Hello,

I am using Marathon to deploy crossbar. And Marathon needs to know if crossbar is working fine or not. Marathon only support http, tcp and command health check (https://mesosphere.github.io/marathon/docs/health-checks.html).

How can crossbar respond to tcp request from marathon health check? Thanks.

Thanks.

Regards,

Jun

0 Likes

#2

Hello,

I am using Marathon to deploy crossbar. And Marathon needs to know if
crossbar is working fine or not. Marathon only support http, tcp and
command health check
(https://mesosphere.github.io/marathon/docs/health-checks.html).

How can crossbar respond to tcp request from marathon health check? Thanks.

One way is: by default, for a WebSocket listening transport, Crossbar.io will render a HTML status page when the WebSocket endpoint is accessed using HTTP/GET (eg by opening in a browser) - that is, when the HTTP request isn't asking to UPGRADE to WebSocket.

You can just put that URL into your health checker.

eg when your listening transport is for

ws://1.2.3.4:8080/ws

then put

http://1.2.3.4:8080/ws

into your health checker. Crossbar.io will answer HTTP/GETs to that URL with status 200.

Cheers,
/Tobias

···

Am 24.03.2016 um 19:03 schrieb Jun:

Thanks.

Regards,
Jun

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Hello, Tobias:

Thank you for your reply. For this to work, do I have to web service(http://crossbar.io/docs/Static-Web-Service/)?

Thanks

Jun

···

On Sat, Mar 26, 2016 at 2:59 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 24.03.2016 um 19:03 schrieb Jun:

Hello,

I am using Marathon to deploy crossbar. And Marathon needs to know if

crossbar is working fine or not. Marathon only support http, tcp and

command health check

(https://mesosphere.github.io/marathon/docs/health-checks.html).

How can crossbar respond to tcp request from marathon health check? Thanks.

One way is: by default, for a WebSocket listening transport, Crossbar.io will render a HTML status page when the WebSocket endpoint is accessed using HTTP/GET (eg by opening in a browser) - that is, when the HTTP request isn’t asking to UPGRADE to WebSocket.

You can just put that URL into your health checker.

eg when your listening transport is for

ws://1.2.3.4:8080/ws

then put

http://1.2.3.4:8080/ws

into your health checker. Crossbar.io will answer HTTP/GETs to that URL with status 200.

Cheers,

/Tobias

Thanks.

Regards,

Jun

You received this message because you are subscribed to the Google

Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to crossbario+...@googlegroups.com

mailto:crossbario+...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com

mailto:cross...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com

<https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Crossbar” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/crossbario/Pg5N1r6e2zs/unsubscribe.

To unsubscribe from this group and all its topics, send an email to crossbario+...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/56F65D75.7070301%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Hi Jun,

this page is rendered for any WebSocket listening transport.

Regards,

Alex

···

Am Dienstag, 5. April 2016 22:58:52 UTC+2 schrieb Jun:

Hello, Tobias:

Thank you for your reply. For this to work, do I have to web service(http://crossbar.io/docs/Static-Web-Service/)?

Thanks

Jun

On Sat, Mar 26, 2016 at 2:59 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 24.03.2016 um 19:03 schrieb Jun:

Hello,

I am using Marathon to deploy crossbar. And Marathon needs to know if

crossbar is working fine or not. Marathon only support http, tcp and

command health check

(https://mesosphere.github.io/marathon/docs/health-checks.html).

How can crossbar respond to tcp request from marathon health check? Thanks.

One way is: by default, for a WebSocket listening transport, Crossbar.io will render a HTML status page when the WebSocket endpoint is accessed using HTTP/GET (eg by opening in a browser) - that is, when the HTTP request isn’t asking to UPGRADE to WebSocket.

You can just put that URL into your health checker.

eg when your listening transport is for

ws://1.2.3.4:8080/ws

then put

http://1.2.3.4:8080/ws

into your health checker. Crossbar.io will answer HTTP/GETs to that URL with status 200.

Cheers,

/Tobias

Thanks.

Regards,

Jun

You received this message because you are subscribed to the Google

Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to crossbario+unsubscribe@googlegroups.com

mailto:crossbario+unsub...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com

mailto:crossbario@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com

<https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Crossbar” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/crossbario/Pg5N1r6e2zs/unsubscribe.

To unsubscribe from this group and all its topics, send an email to crossbario+unsubscribe@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/56F65D75.7070301%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#5

hello

Does it mean that crossbar has a http server running even though it was configured to have web socket open only?

Regards
Jun

···

Sent from my iPhone.

On Apr 6, 2016, at 5:47 AM, ‘Alexander Gödde’ via Crossbar cross...@googlegroups.com wrote:

Hi Jun,

this page is rendered for any WebSocket listening transport.

Regards,

Alex

Am Dienstag, 5. April 2016 22:58:52 UTC+2 schrieb Jun:

Hello, Tobias:

Thank you for your reply. For this to work, do I have to web service(http://crossbar.io/docs/Static-Web-Service/)?

Thanks

Jun

On Sat, Mar 26, 2016 at 2:59 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 24.03.2016 um 19:03 schrieb Jun:

Hello,

I am using Marathon to deploy crossbar. And Marathon needs to know if

crossbar is working fine or not. Marathon only support http, tcp and

command health check

(https://mesosphere.github.io/marathon/docs/health-checks.html).

How can crossbar respond to tcp request from marathon health check? Thanks.

One way is: by default, for a WebSocket listening transport, Crossbar.io will render a HTML status page when the WebSocket endpoint is accessed using HTTP/GET (eg by opening in a browser) - that is, when the HTTP request isn’t asking to UPGRADE to WebSocket.

You can just put that URL into your health checker.

eg when your listening transport is for

ws://1.2.3.4:8080/ws

then put

http://1.2.3.4:8080/ws

into your health checker. Crossbar.io will answer HTTP/GETs to that URL with status 200.

Cheers,

/Tobias

Thanks.

Regards,

Jun

You received this message because you are subscribed to the Google

Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to crossbario+unsubscribe@googlegroups.com

mailto:crossbario+unsub...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com

mailto:crossbario@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com

<https://groups.google.com/d/msgid/crossbario/58225e5d-edd7-4088-8712-4a8a8c6e08e8%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Crossbar” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/crossbario/Pg5N1r6e2zs/unsubscribe.

To unsubscribe from this group and all its topics, send an email to crossbario+unsubscribe@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/56F65D75.7070301%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Crossbar” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/crossbario/Pg5N1r6e2zs/unsubscribe.

To unsubscribe from this group and all its topics, send an email to crossbario+...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/b13d830c-fc03-4127-87b6-fdb3bd758c49%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes