summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README40
1 files changed, 40 insertions, 0 deletions
diff --git a/README b/README
index 333b4e7..f0ef1ed 100644
--- a/README
+++ b/README
@@ -53,6 +53,36 @@ grant tables.
The my.cnf file will installed from one of many possible places, see
manifests/server/base.pp for possible locations for managing this.
+Configuration snippets
+----------------------
+
+To make managing mysql configuration easier, you can use the define
+mysql::conf. Note, though that there currently is only the Debian default
+configuration file that includes files in /etc/mysql/conf.d/.
+
+For example:
+
+mysql::conf { 'test':
+ ensure => present,
+ section => 'mysqld',
+ config => {
+ table_cache => '15000',
+ skip_slave => '',
+ something => '""',
+ }
+}
+
+The above example shows two possibilities for empty values.
+
+ * If a value only has an empty value in the hash passed to the config
+ parameter, that will define a boolean option in mysql by simply mentioning
+ the option name with no equal sign. So in the above, you'd have a line that
+ contains only "skip_slave".
+
+ * If you need to declare a variable with an empty value (e.g. with the equal
+ sign), you can use two quotes as the option's value. In the above example,
+ you'd have a line that looks like "something=".
+
Backups
-------
@@ -68,6 +98,16 @@ Optimizing tables
If you wish mysql to periodically optimize tables, set the
"$mysql_optimize_cron = true" variable before you include mysql::server.
+By default, time of execution for the optimization script will be randomly
+chosen (and will stay consistant for a server) any day between midnight and
+7:00 AM. If you wish to force at least one value, you can use the following
+parameters to the mysql::server class (all values are used directly as a
+cronjob value so they should be set within cron value space):
+
+* optimize_day => sets the day of the week (integer value) during which the script will run.
+* optimize_hour => sets the hour at which the optimization script will run.
+* optimize_minute => sets the minute in the hour at which the script will run.
+
Munin
-----