Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use /var/opt as default for storage #2163

Merged
merged 1 commit into from
Apr 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [#2147](https://github.com/influxdb/influxdb/pull/2147): Set Go Max procs in a better location
- [#2151](https://github.com/influxdb/influxdb/pull/2151): Ignore replay commands on the metastore.
- [#2156](https://github.com/influxdb/influxdb/pull/2156): Propagate error when resolving UDP address in Graphite UDP server.
- [#2163](https://github.com/influxdb/influxdb/pull/2163): Fix up paths for default data and run storage.

## v0.9.0-rc19 [2015-04-01]

Expand Down
6 changes: 3 additions & 3 deletions etc/config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ enabled = false
# consensus.
[broker]
# Where the Raft logs are stored. The user running InfluxDB will need read/write access.
dir = "/tmp/influxdb/development/raft"
dir = "/var/opt/influxdb/raft"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title says /var/lib? /var/opt is intentional?

port = 8086

# Data node configuration. Data nodes are where the time-series data, in the form of
# shards, is stored.
[data]
dir = "/tmp/influxdb/development/db"
dir = "/var/opt/influxdb/db"
port = 8086

# Auto-create a retention policy when a database is created. Defaults to true.
Expand All @@ -82,7 +82,7 @@ port = 8086

[cluster]
# Location for cluster state storage. For storing state persistently across restarts.
dir = "/tmp/influxdb/development/state"
dir = "/var/opt/influxdb/state"

# Configuration for snapshot endpoint.
[snapshot]
Expand Down
5 changes: 4 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
AWS_FILE=~/aws.conf

INSTALL_ROOT_DIR=/opt/influxdb
INFLUXDB_RUN_DIR=/var/opt/influxdb
INFLUXDB_RUN_DIR=/var/run/influxdb
INFLUXDB_LOG_DIR=/var/log/influxdb
INFLUXDB_DATA_DIR=/var/opt/influxdb
CONFIG_ROOT_DIR=/etc/opt/influxdb

SAMPLE_CONFIGURATION=etc/config.sample.toml
Expand Down Expand Up @@ -186,6 +187,8 @@ mkdir -p $INFLUXDB_RUN_DIR
chown -R -L influxdb:influxdb $INFLUXDB_RUN_DIR
mkdir -p $INFLUXDB_LOG_DIR
chown -R -L influxdb:influxdb $INFLUXDB_LOG_DIR
mkdir -p $INFLUXDB_DATA_DIR
chown -R -L influxdb:influxdb $INFLUXDB_DATA_DIR
EOF
echo "Post-install script created successfully at $POST_INSTALL_PATH"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ name=influxd
daemon=/opt/influxdb/influxd

# pid file for the daemon
pidfile=/var/opt/influxdb/run/influxd.pid
pidfile=/var/run/influxdb/influxd.pid

# Configuration file
config=/etc/opt/influxdb/influxdb.conf
Expand Down