TheHive-Project / Docker-Templates

Docker configurations for TheHive, Cortex and 3rd party tools
https://thehive-project.org
GNU Affero General Public License v3.0
113 stars 90 forks source link

Add ScyllaDB template #28

Closed rhaist closed 3 years ago

rhaist commented 3 years ago

This PR adds an additional docker-compose template using Scylla instead of Cassandra. Scylla adds the benefit of a full CQL driver compatible distributed database with a much lower resource footprint.

As Scylla has been tested with JanusGraph I thought to give it a shot. I started a fresh installation of thehive4 and performed various import tests and could not find any errors in the logs so far.

nadouani commented 3 years ago

Hello @rhaist Thanks for this PR, I'm going to merge it ans give it a try ;)

nadouani commented 3 years ago

@all-contributors please add @rhaist for code

allcontributors[bot] commented 3 years ago

@nadouani

I've put up a pull request to add @rhaist! :tada:

garanews commented 3 years ago

@rhaist currently I am getting

thehive4    | [info] c.d.d.c.ClockFactory [|] Using native clock to generate timestamps.
thehive4    | [info] c.d.d.c.p.DCAwareRoundRobinPolicy [|] Using provided data-center name 'datacenter1' for DCAwareRoundRobinPolicy
thehive4    | [info] c.d.d.c.Cluster [|] New Cassandra host scylladb/172.18.0.3:9042 added
thehive4    | [info] o.j.g.i.UniqueInstanceIdRetriever [|] Generated unique-instance-id=ac1200046-4941b21e06c75
thehive4    | [info] c.d.d.c.ClockFactory [|] Using native clock to generate timestamps.
thehive4    | [info] c.d.d.c.p.DCAwareRoundRobinPolicy [|] Using provided data-center name 'datacenter1' for DCAwareRoundRobinPolicy
thehive4    | [info] c.d.d.c.Cluster [|] New Cassandra host scylladb/172.18.0.3:9042 added
thehive4    | [info] o.j.d.Backend [|] Configuring index [search]
thehive4    | [warn] o.t.s.u.Retry [|] An error occurs (Could not instantiate implementation: org.janusgraph.diskstorage.lucene.LuceneIndex), retrying (9)
thehive4    | [info] c.d.d.c.ClockFactory [|] Using native clock to generate timestamps.
thehive4    | [info] c.d.d.c.p.DCAwareRoundRobinPolicy [|] Using provided data-center name 'datacenter1' for DCAwareRoundRobinPolicy
thehive4    | [info] c.d.d.c.Cluster [|] New Cassandra host scylladb/172.18.0.3:9042 added
thehive4    | [info] o.j.g.i.UniqueInstanceIdRetriever [|] Generated unique-instance-id=ac1200046-4941b21e06c76
thehive4    | [info] c.d.d.c.ClockFactory [|] Using native clock to generate timestamps.
thehive4    | [info] c.d.d.c.p.DCAwareRoundRobinPolicy [|] Using provided data-center name 'datacenter1' for DCAwareRoundRobinPolicy
thehive4    | [info] c.d.d.c.Cluster [|] New Cassandra host scylladb/172.18.0.3:9042 added
thehive4    | [info] o.j.d.Backend [|] Configuring index [search]

How did you solve it?

nadouani commented 3 years ago

@garanews are you talking about the (Could not instantiate implementation: org.janusgraph.diskstorage.lucene.LuceneIndex) error?

garanews commented 3 years ago

yes, this is the only thing appears with warning and the UI is not accessible, so wondering if related

nadouani commented 3 years ago

This sound like a permission issue related to the index folder, where TheHive is not able to create the index files

nadouani commented 3 years ago

yes, this is the only thing appears with warning and the UI is not accessible, so wondering if related

Are you using 4.1.2 ?

garanews commented 3 years ago

It sounds good! it was a permission issue!

garanews commented 3 years ago

image