Fork me on GitHub
#onyx
<
2016-07-25
>
devth13:07:21

I see protocol is hardcoded to "http" when (= client-type :http). Could this be configurable so the user could specify https? https://github.com/onyx-platform/onyx-elasticsearch/blob/0a6617db5cd45637dbe153e679df2272a5cff4f8/src/onyx/plugin/elasticsearch.clj#L22

lucasbradstreet13:07:27

Certainly. We would accept a PR for that

devth14:07:27

Ok cool. I'll hopefully get to it soon

Travis14:07:26

I may have asked this question before but so I will apologize in advance, lol. We have the need to write/query a couple DB’s ( cassandra/elasticsearch) in our trigger. What is the best way to deal with DB connections so we don’t have to reconnect every time the trigger is called ( if possible )?

michaeldrogalis15:07:47

@camechis: You have access to the Event map in the sync function. Use lifecycles to add connections to the event map before the task starts.

Travis15:07:11

nice, sounds good. I thought this might be possible, refreshing my memory will the lifecycle run each time? For instance it can double check the connection and reset if it needs to be?

dignati15:07:03

@camechis: lifecycle/before-task-start will run only once. You could throw an exception if the connection has been closed and configure the task to restart when it throws. Then the lifecycle will be run again. If I remember correctly, that is.

gardnervickers16:07:17

We support cassandra migrations

Travis16:07:17

good to know, This is all brand new dev so we don’t currently have anything to migrate