Fork me on GitHub
#onyx
<
2018-07-07
>
sparkofreason15:07:16

Any recommendations on how best to monitor as onyx cluster running in kubernetes? Not clear to me how/if you could use onyx-peer-http-query in this case.

lucasbradstreet16:07:04

@j0ni ah yeah, it’s tough for us to know when your job is complete. You could do some different things like check whether you have processed all of the expected results.

lucasbradstreet16:07:39

@dave.dixon I would only be using onyx peer http query with kubernetes for health checks and metrics

sparkofreason16:07:36

@lucasbradstreet Yes. I'm just a little lost on how you wire it up. Each node runs it's own server, right? Somehow you presumably want to aggregate all those results into Prometheus or something, wondering how people are actually wiring up.

sparkofreason16:07:08

There's probably some key k8s concept I'm missing here.

Travis16:07:59

@dave.dixon I am a little rusty but I think one way to do this is to add an annotation to your peer containers so Prometheus can id them through the k8s mechanism of scraping.

sparkofreason16:07:29

@camechis Thanks, that sounds similar to something I was reading about using prometheus with JMX in k8s, sounds like it will get me headed in the right direction.

sparkofreason16:07:35

Another question as I puzzle through my deployment issues: at start-up I get several messages like "Job ID 5b3651ac-0ad0-4005-b503-79609899c3d1 has already been submitted, and will not be scheduled again.", but those jobs don't show up when I call rq/jobs. I assume those can be safely ignored, aren't using vpeers or other resources?

lucasbradstreet16:07:55

Yep I’ll have to double check but I think it’s just a job being submitted with the same job id, and it’s the idempotency at work

sparkofreason16:07:34

Occurs when the peer starts, before I submit any jobs.

Travis16:07:19

Sounds like a previous run job in the same onyx tenant?

lucasbradstreet16:07:15

Right it’s just playing back the log

sparkofreason21:07:00

Trying to debug some really odd behavior, beginning to suspect it may be related to non-onyx parts of the application behaving badly with kafka and thus ZK. In an effort to better understand how things work, how might I wind up getting this warning on peer startup: "Log parameters have yet to be written to ZooKeeper by a peer. Backing off 500ms and trying again..."

lucasbradstreet22:07:02

Hmm, where’s that warning coming from? When the onyx peers start they’ll write out log parameters for a given tenancy

lucasbradstreet22:07:28

So it’s probably some other component starting up on a tenancy which hasn’t had any peers start yet.

sparkofreason22:07:43

No other component is starting, at least not intentionally. I also tried again with a fresh ZK (supposedly, it's a managed service) and still saw the same thing. Cleaning out all of the checkpoints now.

lucasbradstreet23:07:50

Do you say any messages in there about aeron?

lucasbradstreet23:07:10

It’s possible it’s not able to connect to aeron and it’s not starting any peers as a result