mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
Schedule daily fstrim for data directory and commitlog directory, witch is recommended by Scylla doc: http://www.scylladb.com/doc/admin/#schedule-fstrim Fixes #1347 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1489447472-2981-1-git-send-email-syuu@scylladb.com>
28 lines
797 B
Bash
Executable File
28 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Copyright 2017 ScyllaDB
|
|
#
|
|
|
|
#
|
|
# This file is part of Scylla.
|
|
#
|
|
# Scylla is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Scylla is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Random delay before executing fstrim
|
|
sleep `numrandom /0..86400/`
|
|
|
|
/usr/sbin/scylla_fstrim
|
|
|