outmoded / tv

Interactive debug console
Other
186 stars 41 forks source link

Multiple instance setup? #101

Open hems opened 9 years ago

hems commented 9 years ago

Hello Guys,

By reading the documentation i could not understand how i'm supposed to use TV in case i have multiple instances running.

Let's say i have a cluster which might vary the number of instances over time, i would guess i would need to get a separate machine and run TV server on it and let all the instances connect and log to it ?

Then use an unique "tag" per instance on my hapi.log calls so then i can filter the instances by tag on TV?

Thank you very much

geek commented 9 years ago

This is a good case that we should document. One solution is to add tv to each of the tagged connections. @hems, are you using rejoice and glue for your server configuration, or a simple server.js file?

hems commented 9 years ago

So far i'm just running hapi, without TV.

I would not mind running TV on all server instances, but i would need to see all requests for all instances from a unique place.. Otherwise would be hard to "debug" a load balanced environment?

How could i go about it?

Run an instance aside and connect all "tv clients" to it? Can i just store the "TV" information to a database so all instances see all information?