| 15 | | There are several configuration parameters that affect the |
|---|
| 16 | | behavior of the replication system. In this section, we describe |
|---|
| 17 | | how to set the <application>slon</application> daemon's |
|---|
| 18 | | configuration parameters; the following subsections discuss each |
|---|
| 19 | | parameter in detail. |
|---|
| | 15 | Il y a plusieurs paramÚtres de configuration qui affectent le comportement |
|---|
| | 16 | du systÚme de réplication. Dans cette section, nous allons décrire |
|---|
| | 17 | comment définir les paramÚtres de configuration du démon |
|---|
| | 18 | <application>slon</application>; La sous-section qui suit détaille |
|---|
| | 19 | chaque paramÚtre : |
|---|
| 23 | | All parameter names are case-insensitive. Every parameter takes a value of |
|---|
| 24 | | one of four types: boolean, integer, floating point, or string. |
|---|
| 25 | | Boolean values may be written as <literal>ON</literal>, <literal>OFF</literal>, |
|---|
| | 23 | Tous les noms de paramÚtres sont sensibles à la casse des lettres. |
|---|
| | 24 | Chaque paramÚtre se voir assigné une valeur de types : booléen, |
|---|
| | 25 | entier, flottant ou chaîne de caractÚres. Les valeurs booléennes |
|---|
| | 26 | peuvent être <literal>ON</literal>, <literal>OFF</literal>, |
|---|
| 32 | | One parameter is specified per line. The equal sign between name and |
|---|
| 33 | | value is optional. Whitespace is insignificant and blank lines are |
|---|
| 34 | | ignored. Hash marks (<literal>#</literal>) introduce comments |
|---|
| 35 | | anywhere. Parameter values that are not simple identifiers or |
|---|
| 36 | | numbers must be single-quoted. |
|---|
| | 33 | On spécifie un paramÚtre par ligne. Le signe égal entre le nom |
|---|
| | 34 | et la valeur est optionnel. Les espaces ne sont pas |
|---|
| | 35 | significatifs et les lignes vides sont ignorées. |
|---|
| | 36 | Le caraciÚre diÚse (<literal>#</literal>) permet de placer |
|---|
| | 37 | un commentaire n'importe où. Les valeurs des paramÚtres qui ne |
|---|
| | 38 | sont pas des identifiant ou des nombres doivent être encadrées |
|---|
| | 39 | par des simples quotes. |
|---|
| 49 | | <term><varname>syslog</varname> (<type>integer</type>)</term> |
|---|
| 50 | | <indexterm> |
|---|
| 51 | | <primary><varname>syslog</varname> configuration parameter</primary> |
|---|
| 52 | | </indexterm> |
|---|
| 53 | | <listitem> |
|---|
| 54 | | <para>Sets up logging to syslog. If this parameter is 1, messages go both |
|---|
| 55 | | to syslog and the standard output. A value of 2 sends output only to syslog |
|---|
| 56 | | (some messages will still go to the standard output/error). The default |
|---|
| 57 | | is 0, which means syslog is off. |
|---|
| | 53 | <term><varname>syslog</varname> (<type>entier</type>)</term> |
|---|
| | 54 | <indexterm> |
|---|
| | 55 | <primary>paramÚtre de configuration de<varname>syslog</varname></primary> |
|---|
| | 56 | </indexterm> |
|---|
| | 57 | <listitem> |
|---|
| | 58 | <para>Active les traces avec syslog. Si les paramÚtre est 1, les messages vont |
|---|
| | 59 | Ã la fois vers systlog et la sortie standard. La valeur 2 envoie les traces |
|---|
| | 60 | uniquement à syslog. ( toutefois certains messages seront toujours envoyés |
|---|
| | 61 | sur la sortie standard ou sur la sortie d'erreur). Par défaut, ce paramÚtre |
|---|
| | 62 | est à 0, ce qui signifie que syslog est désactivé. |
|---|
| 63 | | <term><varname>syslog_facility</varname> (<type>string</type>)</term> |
|---|
| 64 | | <indexterm> |
|---|
| 65 | | <primary><varname>syslog_facility</varname> configuration parameter</primary> |
|---|
| 66 | | </indexterm> |
|---|
| 67 | | <listitem> |
|---|
| 68 | | <para>Sets the syslog <quote>facility</quote> to be used when |
|---|
| 69 | | syslog enabled. Valid values are LOCAL0, LOCAL1, LOCAL2, |
|---|
| 70 | | LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is |
|---|
| | 68 | <term><varname>syslog_facility</varname> (<type>chaîne</type>)</term> |
|---|
| | 69 | <indexterm> |
|---|
| | 70 | <primary>paramÚtre de configuration de <varname>syslog_facility</varname></primary> |
|---|
| | 71 | </indexterm> |
|---|
| | 72 | <listitem> |
|---|
| | 73 | <para>Positionne la <quote>facility</quote> que syslog devra utiliser |
|---|
| | 74 | Les valeurs valides sont LOCAL0, LOCAL1, LOCAL2, |
|---|
| | 75 | LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. La valeur par défaut est |
|---|
| 90 | | <term><varname>log_level</varname> (<type>integer</type>)</term> |
|---|
| 91 | | <indexterm> |
|---|
| 92 | | <primary><varname>log_level</varname> configuration parameter</primary> |
|---|
| 93 | | </indexterm> |
|---|
| 94 | | <listitem> |
|---|
| 95 | | <para>Debug log level (higher value ==> more output). Range: [0,4], default 0</para> |
|---|
| 96 | | |
|---|
| 97 | | <para> There are <link linkend="nineloglevels">nine log |
|---|
| 98 | | message types</link>; using this option, some or all of |
|---|
| 99 | | the <quote>debugging</quote> levels may be left out of the |
|---|
| 100 | | slon logs. In &slony1; version 2, a lot of log message levels have |
|---|
| 101 | | been revised in an attempt to ensure the <quote>interesting |
|---|
| 102 | | stuff</quote> comes in at CONFIG/INFO levels, so that you |
|---|
| 103 | | could run at level 0, omitting all of the <quote>DEBUG</quote> |
|---|
| 104 | | messages, and still have meaningful contents in the |
|---|
| 105 | | logs. </para> |
|---|
| | 95 | <term><varname>log_level</varname> (<type>entier</type>)</term> |
|---|
| | 96 | <indexterm> |
|---|
| | 97 | <primary>ParamÚtre de configuration du <varname>log_level</varname></primary> |
|---|
| | 98 | </indexterm> |
|---|
| | 99 | <listitem> |
|---|
| | 100 | <para>Niveau de traces de debug (plus la valeur est haute, plus les messages sont verbeux). |
|---|
| | 101 | Valeurs possibles : de 0 à 4, valeur par défaut : 0 |
|---|
| | 102 | </para> |
|---|
| | 103 | |
|---|
| | 104 | <para> Il y a <link linkend="nineloglevels">neuf niveaux de messages |
|---|
| | 105 | de trace</link>; en utilisant cette option, une partie ou l'ensemble |
|---|
| | 106 | des niveaux <quote>debug</quote> peuvent être désactivés. |
|---|
| | 107 | Avec &slony1; version 2, beaucoup de niveaux de message ont |
|---|
| | 108 | été révisé afin que des <quote>trucs intéressants</quote> |
|---|
| | 109 | apparaissent à partir des niveaux CONFIG/INFO, et qu'il soit possible |
|---|
| | 110 | de fonctionner au niveau 0, en ignorant tous les messages |
|---|
| | 111 | <quote>DEBUG</quote> et continuer à recevoir des informations |
|---|
| | 112 | utiles dans les fichiers de trace.</para> |
|---|
| 111 | | <term><varname>log_pid</varname> (<type>boolean</type>)</term> |
|---|
| 112 | | <indexterm> |
|---|
| 113 | | <primary><varname>log_pid</varname> configuration parameter</primary> |
|---|
| 114 | | </indexterm> |
|---|
| 115 | | <listitem> |
|---|
| 116 | | <para>Determins, if you would like the pid of the (parent) slon process to |
|---|
| 117 | | appear in each log line entry. |
|---|
| | 118 | <term><varname>log_pid</varname> (<type>booléen</type>)</term> |
|---|
| | 119 | <indexterm> |
|---|
| | 120 | <primary>paramÚtre de configuration du <varname>log_pid</varname></primary> |
|---|
| | 121 | </indexterm> |
|---|
| | 122 | <listitem> |
|---|
| | 123 | <para>Détermine si vous souhaitez que le PID du processus pÚre slon |
|---|
| | 124 | doit apparaître dans chaque ligne du fichier de trace. |
|---|
| 140 | | <primary><varname>log_timestamp_format</varname> configuration parameter</primary> |
|---|
| 141 | | </indexterm> |
|---|
| 142 | | <listitem> |
|---|
| 143 | | <para>A <function>strftime()</function>-conformant format |
|---|
| 144 | | string for use if <envar>log_timestamp</envar> is enabled. The |
|---|
| 145 | | default is <quote>%Y-%m-%d %H:%M:%S %Z</quote> |
|---|
| | 147 | <primary>paramÚtre de configuration du <varname>log_timestamp_format</varname></primary> |
|---|
| | 148 | </indexterm> |
|---|
| | 149 | <listitem> |
|---|
| | 150 | <para>Une chaîne au format conforme avec <function>strftime()</function> |
|---|
| | 151 | qui sera utilisé si <envar>log_timestamp</envar> est activé. |
|---|
| | 152 | La valeur par défaut est <quote>%Y-%m-%d %H:%M:%S %Z</quote> |
|---|
| 151 | | <term><varname>pid_file</varname> (<type>string</type>)</term> |
|---|
| 152 | | <indexterm> |
|---|
| 153 | | <primary><varname>pid_file</varname> configuration parameter</primary> |
|---|
| 154 | | </indexterm> |
|---|
| 155 | | <listitem> |
|---|
| 156 | | <para>Location and filename you would like for a file |
|---|
| 157 | | containing the Process ID of the slon process. The default is |
|---|
| 158 | | not defined in which case no file is written. |
|---|
| | 158 | <term><varname>pid_file</varname> (<type>chaîne</type>)</term> |
|---|
| | 159 | <indexterm> |
|---|
| | 160 | <primary>paramÚtre de configuration du <varname>pid_file</varname></primary> |
|---|
| | 161 | </indexterm> |
|---|
| | 162 | <listitem> |
|---|
| | 163 | <para>L'emplacement et le nom du fichier où vous souhaitez |
|---|
| | 164 | stocker le PID du processus slon. La valeur par défaut n'est |
|---|
| | 165 | pas défini, ce qui implique qu'aucun fichier n'est écrit. |
|---|
| 169 | | <term><varname>cluster_name</varname> (<type>string</type>) </term> |
|---|
| 170 | | <indexterm> |
|---|
| 171 | | <primary><varname>cluster_name</varname> configuration parameter</primary> |
|---|
| 172 | | </indexterm> |
|---|
| 173 | | <listitem> |
|---|
| 174 | | <para> |
|---|
| 175 | | Set the cluster name that this instance of |
|---|
| 176 | | <application>slon</application> is running against. The |
|---|
| 177 | | default is to read it off the command line. |
|---|
| | 176 | <term><varname>cluster_name</varname> (<type>chaîne</type>) </term> |
|---|
| | 177 | <indexterm> |
|---|
| | 178 | <primary>paramÚtre de configuration <varname>cluster_name</varname></primary> |
|---|
| | 179 | </indexterm> |
|---|
| | 180 | <listitem> |
|---|
| | 181 | <para> |
|---|
| | 182 | Définit le nom du cluster que l'instance de |
|---|
| | 183 | <application>slon</application> doit gérer. |
|---|
| | 184 | Par défaut cette valeur est obtenue en ligne de commande. |
|---|
| 196 | | <term><varname>sql_on_connection</varname> (<type>string</type>)</term> |
|---|
| 197 | | <indexterm> |
|---|
| 198 | | <primary><varname>sql_on_connection</varname> configuration parameter</primary> |
|---|
| 199 | | </indexterm> |
|---|
| 200 | | <listitem> |
|---|
| 201 | | <para> |
|---|
| 202 | | Execute this SQL on each node at |
|---|
| 203 | | <application>slon</application> connect time. Useful to set |
|---|
| 204 | | logging levels, or to tune the planner/memory settings. You |
|---|
| 205 | | can specify multiple statements by separating them with a ; |
|---|
| | 203 | <term><varname>sql_on_connection</varname> (<type>chaîne</type>)</term> |
|---|
| | 204 | <indexterm> |
|---|
| | 205 | <primary>paramÚtre de configuration de <varname>sql_on_connection</varname></primary> |
|---|
| | 206 | </indexterm> |
|---|
| | 207 | <listitem> |
|---|
| | 208 | <para> |
|---|
| | 209 | Exécute cette requête SQL sur chaque noeud lorsque |
|---|
| | 210 | <application>slon</application> s'y connecte. Utile pour |
|---|
| | 211 | définir un niveau de trace, ou pour configurer les |
|---|
| | 212 | paramÚtres du planificateur ou de la mémoire. |
|---|
| | 213 | Vous pouvez spécifier de multiples requêtes en les |
|---|
| | 214 | séparant par un point-virgule. |
|---|
| 227 | | <term><varname>command_on_logarchive</varname> (<type>text</type>)</term> |
|---|
| 228 | | <indexterm> |
|---|
| 229 | | <primary><varname>command_on_logarchive</varname> configuration parameter</primary> |
|---|
| 230 | | </indexterm> |
|---|
| 231 | | <listitem> |
|---|
| 232 | | <para>This indicates a Unix command to be submitted each time |
|---|
| 233 | | an archive log is successfully generated. |
|---|
| 234 | | </para> |
|---|
| 235 | | |
|---|
| 236 | | <para> The command will be passed one parameter, namely the |
|---|
| 237 | | full pathname of the archive file. Thus, supposing we have |
|---|
| 238 | | the settings...</para> |
|---|
| | 237 | <term><varname>command_on_logarchive</varname> (<type>texte</type>)</term> |
|---|
| | 238 | <indexterm> |
|---|
| | 239 | <primary>paramÚtre de configuration de <varname>command_on_logarchive</varname></primary> |
|---|
| | 240 | </indexterm> |
|---|
| | 241 | <listitem> |
|---|
| | 242 | <para>Ceci définit une commande Unix qui sera lancé à |
|---|
| | 243 | chaque fois qu'un fichier d'archive est produit. |
|---|
| | 244 | </para> |
|---|
| | 245 | |
|---|
| | 246 | <para> Un paramÚtre sera passé à cette commande : le chemin absolu du fichier d'archive. |
|---|
| | 247 | Ainsi si on imagine la configuration suivante : |
|---|
| | 248 | </para> |
|---|
| 256 | | <warning> <para> Note that this is run via |
|---|
| 257 | | <function>system(const char *COMMAND)</function>; if the |
|---|
| 258 | | program that is run takes five minutes to run, that will defer |
|---|
| 259 | | the next <command>SYNC</command> by five minutes. You |
|---|
| 260 | | probably don't want the archiving command to do much |
|---|
| 261 | | <quote>in-line</quote> work.</para></warning> |
|---|
| | 266 | <warning> <para> Notons que cette commande est lancée avec la fonction |
|---|
| | 267 | <function>system(const char *COMMAND)</function>; si le programme |
|---|
| | 268 | exécuté dure 5 minutes, cela retardera le prochain |
|---|
| | 269 | <command>SYNC</command> de cinq minutes. Vous devez vous assurer |
|---|
| | 270 | que la commande d'archivage ne fait des choses trop |
|---|
| | 271 | <quote>compliquées</quote>.</para></warning> |
|---|
| 272 | | <term><varname>sync_interval</varname> (<type>integer</type>)</term> |
|---|
| 273 | | <indexterm> |
|---|
| 274 | | <primary><varname>sync_interval</varname> configuration parameter</primary> |
|---|
| 275 | | </indexterm> |
|---|
| 276 | | <listitem> |
|---|
| 277 | | <para>Check for updates at least this often in milliseconds. |
|---|
| 278 | | Range: [10-60000], default 100 |
|---|
| | 282 | <term><varname>sync_interval</varname> (<type>entier</type>)</term> |
|---|
| | 283 | <indexterm> |
|---|
| | 284 | <primary>paramÚtre de configuration <varname>sync_interval</varname></primary> |
|---|
| | 285 | </indexterm> |
|---|
| | 286 | <listitem> |
|---|
| | 287 | <para>Fréquence maximale (en millisecondes) de vérification des mises à jour. |
|---|
| | 288 | Valeurs possibles : de 10 à 60000, La valeur par défaut est 100. |
|---|
| 284 | | <term><varname>sync_interval_timeout</varname> (<type>integer</type>)</term> |
|---|
| 285 | | <indexterm> |
|---|
| 286 | | <primary><varname>sync_interval_timeout</varname> configuration parameter</primary> |
|---|
| 287 | | </indexterm> |
|---|
| 288 | | <listitem> |
|---|
| 289 | | <para> |
|---|
| 290 | | Maximum amount of time in milliseconds before issuing a |
|---|
| 291 | | <command>SYNC</command> event, This prevents a possible race |
|---|
| 292 | | condition in which the action sequence is bumped by the |
|---|
| 293 | | trigger while inserting the log row, which makes this bump |
|---|
| 294 | | is immediately visible to the sync thread, but the resulting |
|---|
| 295 | | log rows are not visible yet. If the |
|---|
| 296 | | <command>SYNC</command> is picked up by the subscriber, |
|---|
| 297 | | processed and finished before the transaction commits, this |
|---|
| 298 | | transaction's changes will not be replicated until the next |
|---|
| 299 | | <command>SYNC</command>. But if all application activity |
|---|
| 300 | | suddenly stops, there will be no more sequence bumps, so the |
|---|
| 301 | | high frequent <option>-s</option> check won't detect that. |
|---|
| 302 | | Thus, the need for |
|---|
| 303 | | <envar>sync_interval_timeout</envar>. Range: [0-120000], |
|---|
| 304 | | default 1000 |
|---|
| | 294 | <term><varname>sync_interval_timeout</varname> (<type>entier</type>)</term> |
|---|
| | 295 | <indexterm> |
|---|
| | 296 | <primary>paramÚtre de configuration<varname>sync_interval_timeout</varname></primary> |
|---|
| | 297 | </indexterm> |
|---|
| | 298 | <listitem> |
|---|
| | 299 | <para> |
|---|
| | 300 | Délai maximal, en millisecondes,avant qu'un événements |
|---|
| | 301 | <command>SYNC</command> soit déclenché. Ceci évite les |
|---|
| | 302 | situation de compétition ( "race conditions" ) lorsqu'une |
|---|
| | 303 | séquence d'actions est lancé par un trigger alors que des |
|---|
| | 304 | tuples trÚs longs sont insérés, ce qui fait que la séquence d'action |
|---|
| | 305 | est immédiatement visible pour le processus de synchronisation |
|---|
| | 306 | alors que les lignes insérées ne sont pas encore visible. |
|---|
| | 307 | Si l'événement <command>SYNC</command> est attrapé |
|---|
| | 308 | par un noeud abonné, puis traité et terminé avant que la |
|---|
| | 309 | transaction ne soit committée, les changements de cette |
|---|
| | 310 | transaction ne seront pas répliqués avant le |
|---|
| | 311 | <command>SYNC</command> suivant. Cependant si |
|---|
| | 312 | toutes les applications s'arrêtent soudainement, il n'y |
|---|
| | 313 | aura plus de séquence d'actions, et les vérifications |
|---|
| | 314 | fréquente avec <option>-s</option> n'y feront rien. |
|---|
| | 315 | Ainsi il est nécessaire d'avoir un paramÚtre |
|---|
| | 316 | <envar>sync_interval_timeout</envar>. |
|---|
| | 317 | Valeurs possibles : [0-120000], valeur par défaut 1000 |
|---|
| 310 | | <term><varname>sync_group_maxsize</varname> (<type>integer</type>)</term> |
|---|
| 311 | | <indexterm> |
|---|
| 312 | | <primary><varname>sync_group_maxsize</varname> configuration parameter</primary> |
|---|
| 313 | | </indexterm> |
|---|
| 314 | | <listitem> |
|---|
| 315 | | <para> |
|---|
| 316 | | Maximum number of <command>SYNC</command> events to group |
|---|
| 317 | | together when/if a subscriber falls behind. |
|---|
| 318 | | <command>SYNC</command>s are batched only if there are that |
|---|
| 319 | | many available and if they are contiguous. Every other event |
|---|
| 320 | | type in between leads to a smaller batch. And if there is |
|---|
| 321 | | only one <command>SYNC</command> available, even |
|---|
| 322 | | <option>-g60</option> will apply just that one. As soon as a |
|---|
| 323 | | subscriber catches up, it will apply every single |
|---|
| 324 | | <command>SYNC</command> by itself. Range: [0,10000], default: |
|---|
| 325 | | 20 |
|---|
| | 323 | <term><varname>sync_group_maxsize</varname> (<type>entier</type>)</term> |
|---|
| | 324 | <indexterm> |
|---|
| | 325 | <primary>paramÚtre de configuration<varname>sync_group_maxsize</varname></primary> |
|---|
| | 326 | </indexterm> |
|---|
| | 327 | <listitem> |
|---|
| | 328 | <para> |
|---|
| | 329 | Nombre maximum d'événements <command>SYNC</command> qui seront regroupés |
|---|
| | 330 | ensemble lorsqu'un noeud abonné tombe en panne. |
|---|
| | 331 | Les événements <command>SYNC</command>s ne sont empaquetés |
|---|
| | 332 | que si ils ont nombreux et qu'ils sont contiguës. |
|---|
| | 333 | S'il n'y qu'un seul événement <command>SYNC</command> disponible, |
|---|
| | 334 | même l'option <option>-g60</option> s'appliquera à cet évÚnement unique. |
|---|
| | 335 | DÚs qu'un noeud abonné rattrape son retard, il appliquera chaque événement |
|---|
| | 336 | <command>SYNC</command> individuellement. |
|---|
| | 337 | Valeurs possibles : [0,10000], valeur par défaut : 20 |
|---|
| 331 | | <term><varname>vac_frequency</varname> (<type>integer</type>)</term> |
|---|
| 332 | | <indexterm> |
|---|
| 333 | | <primary><varname>vac_frequency</varname> configuration parameter</primary> |
|---|
| 334 | | </indexterm> |
|---|
| 335 | | <listitem> |
|---|
| 336 | | <para> |
|---|
| 337 | | Sets how many cleanup cycles to run before a vacuum is done. |
|---|
| 338 | | 0 disables the builtin vacuum, intended to be used with the |
|---|
| 339 | | <application>pg_autovacuum</application> daemon. Range: |
|---|
| 340 | | [0,100], default: 3 |
|---|
| | 343 | <term><varname>vac_frequency</varname> (<type>entier</type>)</term> |
|---|
| | 344 | <indexterm> |
|---|
| | 345 | <primary>paramÚtre de configuration<varname>vac_frequency</varname></primary> |
|---|
| | 346 | </indexterm> |
|---|
| | 347 | <listitem> |
|---|
| | 348 | <para> |
|---|
| | 349 | Définit le nombre de cycles de nettoyage sont lancé avant qu'un |
|---|
| | 350 | vacuum soit exécutés. O désactive les vacuums interne, utilisé |
|---|
| | 351 | avec le démon <application>pg_autovacuum</application>. |
|---|
| | 352 | Valeurs possibles : [0,100], valeur par défaut: 3 |
|---|
| 348 | | <primary><varname>cleanup_interval</varname> configuration parameter</primary> |
|---|
| 349 | | </indexterm> |
|---|
| 350 | | <listitem> |
|---|
| 351 | | <para> |
|---|
| 352 | | Controls how quickly old events are trimmed out. That |
|---|
| 353 | | subsequently controls when the data in the log tables, |
|---|
| 354 | | <envar>sl_log_1</envar> and <envar>sl_log_2</envar>, get |
|---|
| 355 | | trimmed out. Default: '10 minutes'. |
|---|
| | 360 | <primary>paramÚtre de configuration<varname>cleanup_interval</varname></primary> |
|---|
| | 361 | </indexterm> |
|---|
| | 362 | <listitem> |
|---|
| | 363 | <para> |
|---|
| | 364 | ContrÎle à quelle fréquence les vieux événements doivent être effacés. |
|---|
| | 365 | En corollaire cela contrÃŽle le nettoyage des tables |
|---|
| | 366 | <envar>sl_log_1</envar> et <envar>sl_log_2</envar>. |
|---|
| | 367 | Valeur par défaut: '10 minutes'. |
|---|
| 361 | | <term><varname>cleanup_deletelogs</varname> (<type>boolean</type>)</term> |
|---|
| 362 | | <indexterm> |
|---|
| 363 | | <primary><varname>cleanup_deletelogs</varname> configuration parameter</primary> |
|---|
| 364 | | </indexterm> |
|---|
| 365 | | <listitem> |
|---|
| 366 | | <para> |
|---|
| 367 | | Controls whether or not we use DELETE to trim old data from the log tables, |
|---|
| 368 | | <envar>sl_log_1</envar> and <envar>sl_log_2</envar>. |
|---|
| 369 | | Default: false |
|---|
| | 373 | <term><varname>cleanup_deletelogs</varname> (<type>booléen</type>)</term> |
|---|
| | 374 | <indexterm> |
|---|
| | 375 | <primary>paramÚtre de configuration<varname>cleanup_deletelogs</varname></primary> |
|---|
| | 376 | </indexterm> |
|---|
| | 377 | <listitem> |
|---|
| | 378 | <para> |
|---|
| | 379 | ContrÎle si la commande DELETE est utilisée (ou pas) pour effacer les anciennes données |
|---|
| | 380 | à l'intérieur des tables <envar>sl_log_1</envar> et <envar>sl_log_2</envar>. |
|---|
| | 381 | Valeur par défaut: false |
|---|
| 375 | | <term><varname>desired_sync_time</varname> (<type>integer</type>)</term> |
|---|
| 376 | | <indexterm> |
|---|
| 377 | | <primary><varname>desired_sync_time</varname> configuration parameter</primary> |
|---|
| 378 | | </indexterm> |
|---|
| 379 | | <listitem> |
|---|
| 380 | | <para>Maximum time planned for grouped |
|---|
| 381 | | <command>SYNC</command>s. If replication is behind, |
|---|
| 382 | | <application>slon</application> will try to increase numbers |
|---|
| 383 | | of syncs done targetting that they should take this quantity |
|---|
| 384 | | of time to process. This is in Range [10000,600000] ms, |
|---|
| 385 | | default 60000. </para> |
|---|
| 386 | | |
|---|
| 387 | | <para>If the value is set to 0, this logic will be ignored. |
|---|
| 388 | | </para> |
|---|
| | 387 | <term><varname>desired_sync_time</varname> (<type>entier</type>)</term> |
|---|
| | 388 | <indexterm> |
|---|
| | 389 | <primary>paramÚtre de configuration<varname>desired_sync_time</varname></primary> |
|---|
| | 390 | </indexterm> |
|---|
| | 391 | <listitem> |
|---|
| | 392 | <para>Temps maximum prévu pour un groupe d'événements |
|---|
| | 393 | <command>SYNC</command>s. Si la réplication est en retard, |
|---|
| | 394 | <application>slon</application> essaie d'augmenter le nombre |
|---|
| | 395 | de syncs en évaluant le temps d'exécution qu'ils auraient du prendre. |
|---|
| | 396 | Valeurs possibles : [10000,600000] ms, Valeur par défaut : 60000. </para> |
|---|
| | 397 | |
|---|
| | 398 | <para>Si cette valeur est à 0, alors ce mécanisme est désactivé.</para> |
|---|
| 393 | | <term><varname>quit_sync_provider</varname> (<type>integer</type>)</term> |
|---|
| 394 | | <indexterm> |
|---|
| 395 | | <primary><varname>quit_sync_provider</varname> configuration parameter</primary> |
|---|
| 396 | | </indexterm> |
|---|
| 397 | | <listitem> |
|---|
| 398 | | <para> This must be used in conjunction with <xref |
|---|
| 399 | | linkend="slon-config-quit-sync-finalsync"/>, and indicates |
|---|
| 400 | | which provider node's worker thread should be watched to see |
|---|
| 401 | | if the slon should terminate due to reaching some desired |
|---|
| 402 | | <quote>final</quote> event number.</para> |
|---|
| 403 | | |
|---|
| 404 | | <para>If the value is set to 0, this logic will be ignored.</para> |
|---|
| | 403 | <term><varname>quit_sync_provider</varname> (<type>entier</type>)</term> |
|---|
| | 404 | <indexterm> |
|---|
| | 405 | <primary>paramÚtre de configuration<varname>quit_sync_provider</varname></primary> |
|---|
| | 406 | </indexterm> |
|---|
| | 407 | <listitem> |
|---|
| | 408 | <para> Ce paramÚtre doit être utilisé conjointement avec <xref |
|---|
| | 409 | linkend="slon-config-quit-sync-finalsync"/>, et indique |
|---|
| | 410 | quel processus du noeud fournisseur devrait être surveiller pour |
|---|
| | 411 | savoir si le slon doit s'arrêter aprÚs avoir atteint le numéro d'un |
|---|
| | 412 | événement <quote>final</quote>.</para> |
|---|
| | 413 | |
|---|
| | 414 | <para>Si cette valeur est à 0, alors ce mécanisme est désactivé.</para> |
|---|
| 408 | | <term><varname>quit_sync_finalsync</varname> (<type>integer</type>)</term> |
|---|
| 409 | | <indexterm> |
|---|
| 410 | | <primary><varname>quit_sync_finalsync</varname> configuration parameter</primary> |
|---|
| 411 | | </indexterm> |
|---|
| 412 | | <listitem> |
|---|
| 413 | | <para>Final event number to process. This must be used in |
|---|
| 414 | | conjunction with <xref linkend="slon-config-quit-sync-finalsync"/>, and |
|---|
| 415 | | allows the <application>slon</application> to terminate itself |
|---|
| 416 | | once it reaches a certain event for the specified |
|---|
| 417 | | provider. </para> |
|---|
| 418 | | |
|---|
| 419 | | <para>If the value is set to 0, this logic will be ignored. |
|---|
| 420 | | </para> |
|---|
| | 418 | <term><varname>quit_sync_finalsync</varname> (<type>entier</type>)</term> |
|---|
| | 419 | <indexterm> |
|---|
| | 420 | <primary>paramÚtre de configuration<varname>quit_sync_finalsync</varname></primary> |
|---|
| | 421 | </indexterm> |
|---|
| | 422 | <listitem> |
|---|
| | 423 | <para>Numéro de l'événement final à traiter. Ceci |
|---|
| | 424 | doit être utilisé en conjonction avec <xref linkend="slon-config-quit-sync-finalsync"/>, |
|---|
| | 425 | et permet à <application>slon</application> de s'arrêter lorsqu'il atteint |
|---|
| | 426 | un certain événements sur du noeud fournisseur.</para> |
|---|
| | 427 | |
|---|
| | 428 | <para>Si cette valeur est à 0, alors ce mécanisme est désactivé. </para> |
|---|
| 425 | | <term><varname>lag_interval</varname> (<type>string/interval</type>)</term> |
|---|
| 426 | | <indexterm> |
|---|
| 427 | | <primary><varname>lag_interval</varname> configuration parameter</primary> |
|---|
| 428 | | </indexterm> |
|---|
| 429 | | <listitem> |
|---|
| 430 | | <para>Indicates an interval by which this node should lag its |
|---|
| 431 | | providers. If set, this is used in the event processing loop |
|---|
| 432 | | to modify what events are to be considered for queueing; those |
|---|
| 433 | | events newer than <command> now() - lag_interval::interval |
|---|
| 434 | | </command> are left out, to be processed later. </para> |
|---|
| 435 | | |
|---|
| 436 | | <para>If the value is left empty, this logic will be ignored. |
|---|
| | 433 | <term><varname>lag_interval</varname> (<type>chaîne/interval</type>)</term> |
|---|
| | 434 | <indexterm> |
|---|
| | 435 | <primary>paramÚtre de configuration<varname>lag_interval</varname></primary> |
|---|
| | 436 | </indexterm> |
|---|
| | 437 | <listitem> |
|---|
| | 438 | <para>Indiques un intervalle à partir duquel le noeud |
|---|
| | 439 | est en décalage avec son fournisseur. Si cette valeur est définie, |
|---|
| | 440 | elle est utilisée dans la boucle de gestion des événements |
|---|
| | 441 | afin de modifier la priorité des événements dans la file d'attente; |
|---|
| | 442 | les événements plus récents que <command> now() - lag_interval::interval |
|---|
| | 443 | </command> sont laissés de cÎté, afin d'être traités plus tard. </para> |
|---|
| | 444 | |
|---|
| | 445 | <para>Si cette valeur est vide, alors ce mécanisme est désactivé. |
|---|
| 442 | | <term><varname>sync_max_rowsize</varname> (<type>integer</type>)</term> |
|---|
| 443 | | <indexterm> |
|---|
| 444 | | <primary><varname>sync_max_rowsize</varname> configuration parameter</primary> |
|---|
| 445 | | </indexterm> |
|---|
| 446 | | <listitem> |
|---|
| 447 | | <para>Size above which an sl_log_? row's |
|---|
| 448 | | <envar>log_cmddata</envar> is considered large. Up to 500 |
|---|
| 449 | | rows of this size are allowed in memory at once. Rows larger |
|---|
| 450 | | than that count into the <envar>sync_max_largemem</envar> |
|---|
| 451 | | space allocated and <function>free()</function>'ed on demand. |
|---|
| 452 | | </para> |
|---|
| 453 | | |
|---|
| 454 | | <para>The default value is 8192, meaning that your expected |
|---|
| 455 | | memory consumption (for the LOG cursor) should not exceed 8MB. |
|---|
| | 451 | <term><varname>sync_max_rowsize</varname> (<type>entier</type>)</term> |
|---|
| | 452 | <indexterm> |
|---|
| | 453 | <primary>paramÚtre de configuration<varname>sync_max_rowsize</varname></primary> |
|---|
| | 454 | </indexterm> |
|---|
| | 455 | <listitem> |
|---|
| | 456 | <para>Taille à partir de laquelle le champ <envar>log_cmddata</envar> d'une ligne d'une |
|---|
| | 457 | table sl_log_? est considéré comme volumineux. |
|---|
| | 458 | Jusqu'à 500 lignes de cette taille sont autorisées en mémoire à |
|---|
| | 459 | un instant t. Les lignes plus larges sont comptées dans l'espace |
|---|
| | 460 | d'allocation <envar>sync_max_largemem</envar> et libéré à la demande ( avec |
|---|
| | 461 | la fonction <function>free()</function> ). |
|---|
| | 462 | </para> |
|---|
| | 463 | |
|---|
| | 464 | <para>La valeur par défaut est 8192, ce qui signifie que la consommation |
|---|
| | 465 | mémoire (pour le curseur de LOG) ne doit pas dépasser 8MB. |
|---|
| | 466 | |
|---|
| 461 | | <term><varname>sync_max_largemem</varname> (<type>integer</type>)</term> |
|---|
| 462 | | <indexterm> |
|---|
| 463 | | <primary><varname>sync_max_largemem</varname> configuration parameter</primary> |
|---|
| 464 | | </indexterm> |
|---|
| 465 | | <listitem> |
|---|
| 466 | | <para>Maximum memory allocated for large rows, where |
|---|
| 467 | | <envar>log_cmddata</envar> are larger than |
|---|
| | 472 | <term><varname>sync_max_largemem</varname> (<type>entier</type>)</term> |
|---|
| | 473 | <indexterm> |
|---|
| | 474 | <primary>paramÚtre de configuration<varname>sync_max_largemem</varname></primary> |
|---|
| | 475 | </indexterm> |
|---|
| | 476 | <listitem> |
|---|
| | 477 | <para>Taille maximum de ma mémoire allouée pour les lignes volumineuses |
|---|
| | 478 | quand <envar>log_cmddata</envar> est plus grand que |
|---|
| 470 | | <para>Note that the algorithm reads rows until |
|---|
| 471 | | <emphasis>after</emphasis> this value is exceeded. Otherwise, |
|---|
| 472 | | a tuple larger than this value would stall replication. As a |
|---|
| 473 | | result, don't assume that memory consumption will remain |
|---|
| 474 | | smaller than this value. |
|---|
| 475 | | </para> |
|---|
| 476 | | |
|---|
| 477 | | <para> The default value is 5242880.</para> |
|---|
| | 481 | <para>Notez que l'algorythme lit les lignes jusqu'Ã ce que la valeur soit |
|---|
| | 482 | <emphasis>dépassée</emphasis>. Sinon, un tuple plus large que cette valeur bloquerait la |
|---|
| | 483 | réplication. En conséquence, ne prévoyez pas que la consommation mémoire restera |
|---|
| | 484 | inférieure à cette valeur. |
|---|
| | 485 | </para> |
|---|
| | 486 | |
|---|
| | 487 | <para> La valeur par défaut est 5242880.</para> |
|---|
| 481 | | <term><varname>remote_listen_timeout</varname> (<type>integer</type>)</term> |
|---|
| 482 | | <indexterm> |
|---|
| 483 | | <primary><varname>remote_listen_timeout</varname> configuration parameter</primary> |
|---|
| 484 | | </indexterm> |
|---|
| 485 | | <listitem> |
|---|
| 486 | | <para>How long should the remote listener wait before treating the event selection criteria as having timed out? |
|---|
| 487 | | Range: [30-30000], default 300 |
|---|
| | 491 | <term><varname>remote_listen_timeout</varname> (<type>entier</type>)</term> |
|---|
| | 492 | <indexterm> |
|---|
| | 493 | <primary>paramÚtre de configuration<varname>remote_listen_timeout</varname></primary> |
|---|
| | 494 | </indexterm> |
|---|
| | 495 | <listitem> |
|---|
| | 496 | <para>Combien de temps le processus d'écoute distant doit attendre avant |
|---|
| | 497 | de considérer qu'un événement est périmé. |
|---|
| | 498 | Valeurs possibles : [30-30000], valeur par défaut : 300 |
|---|