Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

CassKop handling of additional local storage #373

Open
collinbowers opened this issue Oct 19, 2021 · 1 comment
Open

CassKop handling of additional local storage #373

collinbowers opened this issue Oct 19, 2021 · 1 comment

Comments

@collinbowers
Copy link

Type of question

Are you asking about community best practices, how to implement a specific feature, or about general context and help around casskop ?

Specific question.

Question

What did you do?

I have a large production Cassandra cluster. The boxes that these nodes run on, have multiple disks. I have reserved 1 disk solely for Cassandra local-storage. Another disk is free and ready to be used when needed. Is there a way in Casskop to add that extra disk to the cassandra-cluster config, if needed?

I know the docs say Resizing persistent storage for existing CassandraCluster is not currently supported. You must decide the necessary storage size before deploying the cluster ... but I am wondering if that applies to adding an entire disk to the configuration, rather than 'resizing'?

Environment

  • casskop version:
    1.1.3

  • Kubernetes version information:
    1.16.6

  • Cassandra version:
    3.11

Additional context
Add any other context about the question here.

@cscetbon
Copy link
Contributor

Hey @collinbowers, I don't think it's supported atm but what you could try (not tested) is use the v2 version (latest) and override data_file_directories with a list of folders, add a storageConfig, and use a PodPreset to inject to mount it in the Cassandra container. I don't think you can mount a storage volume in the main container atm but only in sidecars. We could also accept a PR for that. Try to set up a test like https://github.com/Orange-OpenSource/casskop/tree/master/test/kuttl/sidecars in order to validate if it works or not, and that can be a good start for a PR if it's needed.

I hope it helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants