Skip to content

Commit

Permalink
Add vcap.component.announce and vcap.component.discover to cloud cont…
Browse files Browse the repository at this point in the history
…roller, health manager and router
  • Loading branch information
frodenas committed Mar 31, 2012
1 parent 1c069cd commit 85b4eda
Show file tree
Hide file tree
Showing 12 changed files with 222 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _includes/snippets/cloudcontroller-component-announce.json
@@ -0,0 +1,11 @@
{
"type": "CloudController",
"index": null,
"uuid": "86149654ba69aa01413148c59dc91a03",
"host": "192.168.1.15:33644",
"credentials": [
"a9607fb61cd3569d87786d0c0dbc42d3",
"2de7a6dde6e0c41ca14001badd7bd30f"
],
"start": "2012-03-31 11:38:48 +0200"
}
12 changes: 12 additions & 0 deletions _includes/snippets/cloudcontroller-component-discover.json
@@ -0,0 +1,12 @@
{
"type": "CloudController",
"index": null,
"uuid": "86149654ba69aa01413148c59dc91a03",
"host": "192.168.1.15:33644",
"credentials": [
"a9607fb61cd3569d87786d0c0dbc42d3",
"2de7a6dde6e0c41ca14001badd7bd30f"
],
"start": "2012-03-31 11:38:48 +0200",
"uptime": "0d:6h:6m:8s"
}
11 changes: 11 additions & 0 deletions _includes/snippets/healthmanager-component-announce.json
@@ -0,0 +1,11 @@
{
"type": "HealthManager",
"index": null,
"uuid": "174179cc96e3d713f302cead20da77ff",
"host": "192.168.1.15:60515",
"credentials":[
"e64ba83a8f6ba7908406a8da1f44495b",
"5e6521945942b5c4c41ca11a52d4b259"
],
"start": "2012-03-31 11:39:07 +0200"
}
12 changes: 12 additions & 0 deletions _includes/snippets/healthmanager-component-discover.json
@@ -0,0 +1,12 @@
{
"type": "HealthManager",
"index": null,
"uuid": "174179cc96e3d713f302cead20da77ff",
"host": "192.168.1.15:60515",
"credentials":[
"e64ba83a8f6ba7908406a8da1f44495b",
"5e6521945942b5c4c41ca11a52d4b259"
],
"start": "2012-03-31 11:39:07 +0200",
"uptime": "0d:6h:6m:7s"
}
11 changes: 11 additions & 0 deletions _includes/snippets/router-component-announce.json
@@ -0,0 +1,11 @@
{
"type": "Router",
"index": null,
"uuid": "8ff006200d95a761d809458fd5a3edae",
"host": "192.168.1.15:44860",
"credentials": [
"cbfb64e1d0c727d8af53472265cabc88",
"8fcd70d806f0720a3fd7e72c64ba789b"
],
"start": "2012-03-31 11:39:08 +0200"
}
12 changes: 12 additions & 0 deletions _includes/snippets/router-component-discover.json
@@ -0,0 +1,12 @@
{
"type": "Router",
"index": null,
"uuid": "8ff006200d95a761d809458fd5a3edae",
"host": "192.168.1.15:44860",
"credentials": [
"cbfb64e1d0c727d8af53472265cabc88",
"8fcd70d806f0720a3fd7e72c64ba789b"
],
"start": "2012-03-31 11:39:08 +0200",
"uptime": "0d:6h:5m:49s"
}
@@ -0,0 +1,25 @@
---
layout: post
category: cloud-controller
title: "Publish: vcap.component.announce"
---

When the cloud controller is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the cloud controller is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the cloud controller

The `vcap.component.announce` message is sent out by the cloud controller in order to announce
its existence and to publish the monitoring endpoints.

The message is sent out when the cloud controller is starting up and each time the cloud controller receives
a [vcap.component.discover](/cloud-controller/subscribe-vcap-component-discover) request.

<div class="js example">
{% highlight js %}
{% include snippets/cloudcontroller-component-announce.json %}
{% endhighlight %}
</div>

The message expects no reply.
@@ -0,0 +1,26 @@
---
layout: post
category: cloud-controller
title: "Subscribe: vcap.component.discover"
---

When the cloud controller is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the cloud controller is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the cloud controller

The `vcap.component.discover` message is sent out by the cloud controller in order to announce
its existence and to publish the monitoring endpoints.

### Request

There is no message for this request.

### Response

<div class="js example">
{% highlight js %}
{% include snippets/cloudcontroller-component-discover.json %}
{% endhighlight %}
</div>
@@ -0,0 +1,25 @@
---
layout: post
category: health-manager
title: "Publish: vcap.component.announce"
---

When the health manager is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the health manager is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the health manager

The `vcap.component.announce` message is sent out by the health manager in order to announce
its existence and to publish the monitoring endpoints.

The message is sent out when the health manager is starting up and each time the health manager receives
a [vcap.component.discover](/health-manager/subscribe-vcap-component-discover) request.

<div class="js example">
{% highlight js %}
{% include snippets/healthmanager-component-announce.json %}
{% endhighlight %}
</div>

The message expects no reply.
@@ -0,0 +1,26 @@
---
layout: post
category: health-manager
title: "Subscribe: vcap.component.discover"
---

When the health manager is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the health manager is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the health manager

The `vcap.component.discover` message is sent out by the health manager in order to announce
its existence and to publish the monitoring endpoints.

### Request

There is no message for this request.

### Response

<div class="js example">
{% highlight js %}
{% include snippets/healthmanager-component-discover.json %}
{% endhighlight %}
</div>
25 changes: 25 additions & 0 deletions _posts/router/0001-01-01-publish-vcap-component-announce.md
@@ -0,0 +1,25 @@
---
layout: post
category: router
title: "Publish: vcap.component.announce"
---

When the router is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the router is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the router

The `vcap.component.announce` message is sent out by the router in order to announce
its existence and to publish the monitoring endpoints.

The message is sent out when the router is starting up and each time the router receives
a [vcap.component.discover](/router/subscribe-vcap-component-discover) request.

<div class="js example">
{% highlight js %}
{% include snippets/router-component-announce.json %}
{% endhighlight %}
</div>

The message expects no reply.
26 changes: 26 additions & 0 deletions _posts/router/0001-01-01-subscribe-vcap-component-discover.md
@@ -0,0 +1,26 @@
---
layout: post
category: router
title: "Subscribe: vcap.component.discover"
---

When the router is registered through the system (via `VCAP::Component.register`), it starts an
http server and expose 2 endpoints:

* `/healthz`: returns if the router is up (simple 'ok' string)
* `/varz`: returns runtime metrics gathered by the router

The `vcap.component.discover` message is sent out by the router in order to announce
its existence and to publish the monitoring endpoint.

### Request

There is no message for this request.

### Response

<div class="js example">
{% highlight js %}
{% include snippets/router-component-discover.json %}
{% endhighlight %}
</div>

0 comments on commit 85b4eda

Please sign in to comment.