[ 
https://issues.apache.org/jira/browse/CASSANDRA-18031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18062298#comment-18062298
 ] 

Sachin Gupta commented on CASSANDRA-18031:
------------------------------------------

Submitted a patch as GitHub PR: 
[https://github.com/apache/cassandra/pull/4648|vscode-file://vscode-app/c:/Users/guptasachin/AppData/Local/Programs/Microsoft%20VS%20Code/072586267e/resources/app/out/vs/code/electron-browser/workbench/workbench.html]

This adds a configurable {{snapshot_directory}} option to 
{{{}cassandra.yaml{}}}, allowing snapshots to be stored on a separate mount 
point using file copies instead of hardlinks. This is useful for environments 
where snapshots need to reside on different storage (e.g., NFS, cheaper disks) 
than the data directories.

Changes: 9 files, ~277 lines added. Tested: build, snapshot creation, 
listsnapshots, clearsnapshot, and backward compatibility (hardlinks preserved 
when {{snapshot_directory}} is not set).

Could a committer please move this to "Patch Available"? Thank you.

> Make snapshot directory configurable
> ------------------------------------
>
>                 Key: CASSANDRA-18031
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18031
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Local/Snapshots
>            Reporter: Paulo Motta
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>              Labels: lhf
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently the snapshot directory is hard-coded to 
> \{table_dir}/snapshots/\{tag}.
> It should be possible to configure this to another directory, something like 
> \{snapshot_dir}/\{table}/\{snapshot_tag}.
> Alternatively we could make a single directory for all snapshots making the 
> global snapshot tag unique: \{snapshot_dir}/\{global_snapshot_tag}.
> We should probably check that \{snapshot_dir} is in the same disk as 
> \{storage_directory} to allow hard linking.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to