Conversation
Backported Kafka support from Onyx. Ingesting syslog via Kafka and saving it to MySQL. Running a syslog-ng relay that receives syslog and passes it to Kafka.
cljfmt is beside itself with anger. Appease the cljfmt gods! |
# links: | ||
# - kafka:kafka | ||
# environment: | ||
# BROKER_LIST: kafka:9092 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably just get rid of this :)
|
Current coverage is
|
This PR has tabs all over it. |
classic golang party foul |
What's the Clojure-preferred indentation style? (And why doesn't |
Well, obviously whatever (defn run-query
([query events]
(run-query 1 query events))
([n-answers query events]
(eval (gen-query n-answers query events)))) Lines 3 and 5 "hang" where 2 and 4 do. |
cljfmt allegedly does fix indentation: https://github.com/weavejester/cljfmt#configuration Perhaps it only fixes local style? |
mount -t tmpfs -o remount,rw,nosuid,nodev,noexec,relatime,size=256M tmpfs /dev/shm | ||
APP_NAME=$(echo "desdemona" | sed s/"-"/"_"/g) | ||
|
||
exec java -cp /srv/desdemona.jar "$APP_NAME.launcher.aeron_media_driver" >>/var/log/aeron.log 2>&1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why both this and run_peers.sh exists. What's the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the cluster requires both of them in order to run. (But it seems like we don't need run-container.sh any more.)
[:lifecycles] | ||
conj | ||
(merge | ||
{:lifecycle/task task, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nitpick: no superfluous commas
I am merging this despite the codecov failure; the code we care about is tested, the untested code comes straight from the template; we'll be addressing individual coverage improvements after this PR. |
Backported support for Docker Compose and Kafka.
Using Kafka to read lines and save them into a MySQL database. (This was stolen directly from the Onyx template. Obviously we need to change how/where it gets stored.)
Using a syslog-ng relay that receives syslog lines and passes them along to Kafka.
docker-compose up
will start the whole thing.Before you can do anything else, you need to create the Kafka topic:
(And then type anything. Or you could just send syslog to your Docker host on port 601.)
You also need to create the database table:
And then you can submit the job!
And then whatever you send to syslog on that host should go through Kafka and appear in MySQL.