forked from Netflix/Priam
-
Notifications
You must be signed in to change notification settings - Fork 3
Properties
psadhu edited this page Apr 25, 2012
·
13 revisions
You can choose to override the defaults used by Priam by specifying properties. The defaults provided in this page are implemented by PriamConfiguration class.
PriamConfiguration looks for properties specified in PriamProperties SimpleDB domain. To create a property, create an item with the following attributes:
- Item Name: Cluster name + property name
- appId : Your cluster name
- property: Name of the property
- value: Property value
Eg: If you want to change the jmx port to 7200 for your cluster ‘my_cluster’ set:
- Item Name: my_clusterpriam.jmx.port
- appId : my_cluster
- property: priam.jmx.port
- value: 7200
Property | Default | Description |
---|---|---|
priam.jmx.port | 7199 | JMX port |
priam.thrift.port | 9160 | Thrift port |
priam.storage.port | 7000 | Storage port used by Cassandra |
Property | Default | Description |
---|---|---|
priam.clustername | cass_cluster | Name of the Cassandra cluster |
priam.endpoint_snitch | org.apache.cassandra.locator.Ec2Snitch | End point snitch to be used in yaml |
priam.multiregion.enable | false | Enables multi region if true |
priam.zones.available | First 3 zones in the region | Comma separated list of zones where nodes are deployed. |
priam.memory.compaction.limit | 128 | MB |
priam.compaction.throughput | 8 | MB/sec |
priam.heap.size | 8G | Cassandra heap size |
priam.heap.newgen.size | 2G | Cassandra New gen size |
priam.direct.memory.size | 50G | Cassandra direct mem size |
Property | Default | Description |
---|---|---|
priam.cass.home | /etc/cassandra | Cassandra home dir |
priam.cass.startscript | /etc/init.d/cassandra start | Cassandra startup script |
priam.cass.stopscript | /etc/init.d/cassandra stop | Cassandra stop script |
priam.data.location | /var/lib/cassandra/data | Data directory |
priam.cache.location | /var/lib/cassandra/saved_caches | Cache directory |
priam.commitlog.location | /var/lib/cassandra/commitlog | Commit log directory |
Property | Default | Description |
---|---|---|
priam.backup.threads | 2 | Number of backup threads |
priam.backup.hour | 12 | Backup hour to run daily snapshot |
priam.backup.incremental.enable | true | Enables incremental backup if true |
priam.backup.chunksizemb | 10 | (MB)Part size when uploading to S3 |
priam.restore.prefix | Defaults to current cluster and backup bucket. | Prefix to be used for locating backups. |
priam.restore.snapshot | Specifies the time range to be searched when restoring. Setting this param will trigger restore. | |
priam.s3.bucket | cassandra-archive | S3 bucket used for backups |
priam.s3.base_dir | backup | Specify a base prefix that will be used for all backups |
priam.restore.threads | 8 | Number of restore threads to be used |
priam.restore.closesttoken | false | If specified, a closes token is searched in the backups for restoring |
priam.restore.keyspaces | Restores the specified keyspace. Do not set this to restore all keyspaces. | |
priam.upload.throttle | defaults to Integer.MAX_VALUE | Throttle MB/sec for uploads |