health check with Crossbar

84 views
Skip to first unread message

Jun

unread,
Mar 24, 2016, 2:03:34 PM3/24/16
to Crossbar
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 

Tobias Oberstein

unread,
Mar 26, 2016, 5:59:19 AM3/26/16
to cross...@googlegroups.com
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.

Jun Zou

unread,
Apr 5, 2016, 4:58:52 PM4/5/16
to cross...@googlegroups.com
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


--
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.

Alexander Gödde

unread,
Apr 6, 2016, 8:47:35 AM4/6/16
to Crossbar
Hi Jun,

this page is rendered for any WebSocket listening transport.

Regards,

Alex

Thanks.

Regards,
Jun

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

--
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.

junzo...@gmail.com

unread,
Apr 6, 2016, 10:56:15 AM4/6/16
to cross...@googlegroups.com
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.
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.
Reply all
Reply to author
Forward
0 new messages