Fork me on GitHub
#onyx
<
2016-08-04
>
lucasbradstreet10:08:12

Great, thank you!

dignati11:08:35

That looks great!

vijaykiran11:08:27

It is still rough around the edges, I think the user-guide should have more “flow” - but that’s just like my opinion 🙂 I’ll think more about it this weekend and come back with suggestions

vijaykiran11:08:39

first - hdfs-write-plugin 🙂

lucasbradstreet11:08:30

I'm sure you're right

robert-stuttaford12:08:32

hello friends 🙂

lucasbradstreet12:08:07

G’day. Doing good. How’s it going over in Cognician land?

robert-stuttaford12:08:26

it's "save on AWS costs" day over here

robert-stuttaford12:08:54

we were wondering if we could revisit the idea of possibly sticking http://docs.caudate.me/hara/hara-io-scheduler.html inside a task somehow so that we can ensure that only one instance starts via onyx/max-peers

robert-stuttaford12:08:08

because doing so allows us to avoid running a separate instance for it

lucasbradstreet12:08:00

I think it’ll be a bit awkward, because you’ll have to have it associated to a task

lucasbradstreet12:08:15

I assume you’re not just running an extra JVM because you need it to fail over to a different machine?

robert-stuttaford12:08:33

well, our onyx instances are homogenous

robert-stuttaford12:08:05

we could run another jvm on one of them, but then we need a good mechanism for choosing an instance, and dealing with failure modes

robert-stuttaford12:08:16

onyx already solves all those problems really well

robert-stuttaford12:08:29

via :onyx/max-peers 1

lucasbradstreet12:08:42

yeah, I figured that’s what you were going for.

lucasbradstreet12:08:46

the downside is that you’ll need it wired up to a task in your workflow, and I assume that task won’t send or receive anything (unless you piggy back it on one of your other tasks)

robert-stuttaford12:08:12

yeah. i guess its only input is the clock on the wall

robert-stuttaford12:08:14

ok. thanks. food for thought!

robert-stuttaford12:08:52

actually, i guess we could bring it in to the codebase and find some way to only run it on one of the instances, by inspecting the relationship of the instance to the auto-scaling group, or something

lucasbradstreet12:08:55

I have some other ideas, like following the log and only running if the replica says that you’re the host with the lowest IP, or something similarly determinstic

robert-stuttaford12:08:07

that would save the cost at least, even if it doesn't solve the failure modes

robert-stuttaford12:08:18

oh, that's interesting

lucasbradstreet12:08:52

That’s essentially the strategy I’m using to do some peer election in other ways

lucasbradstreet12:08:56

you’d have to code it up right though

robert-stuttaford12:08:53

so all instances would run the scheduler, but only the instance with the lowest IP would allow scheduled work to occur?

lucasbradstreet12:08:53

you’d probably be better off just using ZooKeeper plain and doing leader election via a Curator recipe

robert-stuttaford12:08:06

that solves instances going up and down

lucasbradstreet12:08:29

yeah, if one of them goes down and is no longer in the replica, the other peers may have to spring into action

lucasbradstreet12:08:44

It’s probably a bit hacky vs just writing up some leader election code with ZooKeeper though

robert-stuttaford12:08:55

i wonder if there's a clojure friendly scheduler that can track its state via ZK

robert-stuttaford12:08:14

cos we literally just need something to run exactly once every hour

robert-stuttaford12:08:49

i know, i'll delegate it! 🙂

robert-stuttaford12:08:55

thanks for the sanity check, Lucas

robert-stuttaford12:08:06

i hope things are going swimmingly for you and the team?

lucasbradstreet12:08:30

Everything is going great, thanks 😄

lucasbradstreet12:08:42

trying to get all my immigration stuff sorted out so I can join everyone in the US

michaeldrogalis14:08:29

@vijaykiran: Fantastic work. My favorite part about having a single-page user guide is being able to use Ctrl+F again 😛

michaeldrogalis14:08:20

I'll review and get it merged tomorrow, along with those tutorials from earlier. I think the only thing left is to write a small script to automatically build that HTML file, which should only be 4-5 lines 🙂 I can take that piece.

dominicm15:08:54

@michaeldrogalis: btw, there's a asciidoctor-stylesheet-factory that you might want to check out for an easily tweaked stylesheet

michaeldrogalis15:08:21

@dominicm: Oh yeah, good idea. I played around with that a while back. There was some snazzy looking stuff in there.

dominicm15:08:13

On a somewhat-related note, I just managed to get the stylesheet factory to compile with libsass and foundation 5. That would open up space for it to be part of a boot compilation system.

Drew Verlee22:08:58

will it be easier to work on my workflow then try to put it into production or is it better to start with a simple workflow put that into production then iterate on it?