[Hawkular-dev] Sync with Inventory

Thomas Segismont tsegismo at redhat.com
Thu Jun 23 04:27:12 EDT 2016


Hey Lukas,

Thank you for pointing us in the sync endpoint. Austin will look into 
this and will certainly come back with more questions.

With respect to the user creating resources question, the difference 
between Vert.x and Wildfly is that the user creates resources 
grammatically. So in version 1 of the application, there might be two 
HTTP servers as well as 7 event bus handlers, but only 1 http server in 
version 2. And a named worker pool in version 3.

In the end, I believe it doesn't matter if it's container which creates 
resources or if it's the user himself. Does it?

As for the feed question, the Vert.x feed will be the Metrics SPI 
implementation (vertx-hawkular-metrics project). Again I guess it's not 
much different than the Hawkular Agent.

Maybe the wording around user creating resources was confusing? Did you 
thought he would do so from application code? In this case, the answer 
is no.

Regards,
Thomas

Le 23/06/2016 à 10:01, Austin Kuo a écrit :
> Yes, I’m gonna build the inventory for vertx applications.
> So I have to create a feed for it.
>
> Thanks!
>
> On Tue, Jun 21, 2016 at 7:55 PM Lukas Krejci <lkrejci at redhat.com
> <mailto:lkrejci at redhat.com>> wrote:
>
>     Hi Austin,
>
>     Inventory offers a /hawkular/inventory/sync endpoint that is used to
>     synchronize the "world view" of feeds (feed being something that
>     pushes data
>     into inventory).
>
>     You said though that a "user creates" the resources, so I am not
>     sure if /sync
>     would be applicable to your scenario. Would you please elaborate
>     more on where
>     in the inventory hierarchy you create your resources and how? I.e.
>     are you
>     using some sort of feed akin to Hawkular's Wildfly Agent or are you just
>     creating your resources "manually" under environments?
>
>     On Tuesday, June 21, 2016 02:20:33 AM Austin Kuo wrote:
>     > Hi all,
>     >
>     > I’m currently investigating how to sync with inventory server.
>     > Here’s the example scenario:
>     > Consider the following problem. A user creates version 1 of the
>     app with
>     > two http servers, one listening on port 8080, the other on port
>     8181. In
>     > version 2, the http server listening on port 8181 is no longer needed.
>     > When the old version is stopped and the new version started, there
>     will be
>     > just one http server listening. The application is not aware of the
>     > previous state. What should we do so that the second http server
>     is removed
>     > from Inventory?
>     >
>     > Thanks in advance.
>
>     --
>     Lukas Krejci
>
>     _______________________________________________
>     hawkular-dev mailing list
>     hawkular-dev at lists.jboss.org <mailto:hawkular-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
>
>
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
>

-- 
Thomas Segismont
JBoss ON Engineering Team


More information about the hawkular-dev mailing list