You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Scott White (JIRA)" <ji...@apache.org> on 2010/02/12 01:10:27 UTC

[jira] Created: (CASSANDRA-788) Make snapshot dir location configurable

Make snapshot dir location configurable
---------------------------------------

                 Key: CASSANDRA-788
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-788
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Scott White
            Priority: Minor


The snapshot dir location is currently hardwired to data/snapshots. It would be more convenient if this could be specified in a config file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CASSANDRA-788) Make snapshot dir location configurable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-788.
--------------------------------------

    Resolution: Won't Fix

snapshots are hard links, making it configurable is a bad idea because I guarantee someone would configure it to be on a different volume and then stuff breaks.

> Make snapshot dir location configurable
> ---------------------------------------
>
>                 Key: CASSANDRA-788
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-788
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Scott White
>            Priority: Minor
>
> The snapshot dir location is currently hardwired to data/snapshots. It would be more convenient if this could be specified in a config file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-788) Make snapshot dir location configurable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833149#action_12833149 ] 

Jonathan Ellis commented on CASSANDRA-788:
------------------------------------------

You're welcome to copy/move them anywhere you like manually, but it can only be a hard link on the same volume (where it takes only a few bytes).  http://en.wikipedia.org/wiki/Hard_link

> Make snapshot dir location configurable
> ---------------------------------------
>
>                 Key: CASSANDRA-788
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-788
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Scott White
>            Priority: Minor
>
> The snapshot dir location is currently hardwired to data/snapshots. It would be more convenient if this could be specified in a config file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-788) Make snapshot dir location configurable

Posted by "Scott White (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833080#action_12833080 ] 

Scott White commented on CASSANDRA-788:
---------------------------------------

Understood. But couldn't one make the counter argument that by forcing snapshots to the same volume as the live data you could end up in one of two scenarios:
1) Your snapshotted data has eaten up so much of the existing volume that cassandra fails as it tries to add more data because there is no more disk left.
2) The live data has filled up so much of the existing volume that there is not enough room left to do a snapshot?

It seems to me you can shoot yourself in the foot either way but having more flexibility in which risk you are most susceptible becomes an explicit choice. 

> Make snapshot dir location configurable
> ---------------------------------------
>
>                 Key: CASSANDRA-788
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-788
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Scott White
>            Priority: Minor
>
> The snapshot dir location is currently hardwired to data/snapshots. It would be more convenient if this could be specified in a config file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.