Changeset 1015
- Timestamp:
- 04/29/08 09:08:27 (7 months ago)
- Files:
-
- traduc/trunk/slony/concepts.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
traduc/trunk/slony/concepts.xml
r901 r1015 6 6 7 7 <sect1 id="concepts"> 8 <title> &slony1; Concepts</title>8 <title>Les concepts</title> 9 9 10 <indexterm><primary>concepts and terminology</primary></indexterm>10 <indexterm><primary>concepts et terminologie</primary></indexterm> 11 11 12 <para> In order to set up a set of &slony1; replicas, it is necessary13 to understand the following major abstractions that it uses:</para>12 <para>Afin de mettre en place une réplication &slony1;, il est nécessaire de comprendre les 13 principales abstractions utilisées : </para> 14 14 15 15 <itemizedlist> 16 <listitem><para>Cluster </para></listitem>17 <listitem><para>No de</para></listitem>18 <listitem><para> Replication Set</para></listitem>19 <listitem><para>Origin , Providers and Subscribers</para></listitem>20 <listitem><para> slon daemons</para></listitem>21 <listitem><para> slonik configuration processor</para></listitem>16 <listitem><para>Cluster,</para></listitem> 17 <listitem><para>Noeud ("node"),</para></listitem> 18 <listitem><para>Ensemble de réplication ("replication set"),</para></listitem> 19 <listitem><para>Origine ("Origin"), Fournisseurs ("Providers") et Abonnés ("Subscribers"),</para></listitem> 20 <listitem><para>Les démons slon,</para></listitem> 21 <listitem><para>La commande slonik</para></listitem> 22 22 </itemizedlist> 23 23 24 <para> I t is also worth knowing the meanings of certain Russian words:</para>24 <para> Il est également nécessaire de connaître quelques mots de russe :</para> 25 25 <itemizedlist> 26 <listitem><para>slon is Russian for <quote>elephant</quote></para></listitem>27 <listitem><para>slony is the plural of slon, and therefore refers to a group of elephants</para></listitem>28 <listitem><para>slonik is Russian for <quote>little elephant</quote></para></listitem>26 <listitem><para>slon signifie <quote>éléphant</quote> en russe,</para></listitem> 27 <listitem><para>slony est le pluriel de slon, et désigne ainsi un groupe d'éléphants</para></listitem> 28 <listitem><para>slonik désigne un <quote>petit éléphant</quote></para></listitem> 29 29 </itemizedlist> 30 30 31 <para> The use of these terms in &slony1; is a <quote>tip of the 32 hat</quote> to Vadim Mikheev, who was responsible for the 33 <application>rserv</application> prototype which inspired some of the 34 algorithms used in &slony1;.</para> 31 <para> L'utilisation de ces termes dans &slony1; est un <quote>coup de chapeau</quote> 32 à Vadim Mikheev, qui est l'auteur du prototype <application>rserv</application> 33 qui inspira une partie des algorithmes utilisé dans &slony1;.</para> 35 34 36 35 <sect2> … … 40 39 </indexterm> 41 40 42 <para>In &slony1; terms, a <quote>cluster</quote> is a named set of 43 &postgres; database instances; replication takes place between those 44 databases.</para> 41 <para>Selon &slony1;, un <quote>cluster</quote> est ensemble nommé d'instances de bases 42 de données &postgres;; Une réplication a lieu entre ces bases.</para> 45 43 46 <para> The cluster name is specified in each and every Slonik script via the directive:</para>44 <para>Le nom du cluster est spécifié dans chaque script Slonik via la directive :</para> 47 45 <programlisting> 48 cluster name = ' something';46 cluster name = 'quelque_chose'; 49 47 </programlisting> 50 48 51 <para>If the Cluster name is <envar>something</envar>, then &slony1; 52 will create, in each database instance in the cluster, the 53 namespace/schema <envar>_something.</envar></para> 49 <para>Si le nom du cluster est <envar>plop</envar>, alors &slony1; 50 créera, dans chaque instance du cluster, le schéma <envar>_plop</envar>.</para> 54 51 </sect2> 55 <sect2><title>No de</title>52 <sect2><title>Noeud</title> 56 53 <indexterm> 57 <primary>no de</primary>54 <primary>noeud</primary> 58 55 </indexterm> 59 56 60 <para>A &slony1; Node is a named &postgres; database that will be 61 participating in replication.</para> 57 <para>Un noeud &slony1; est un base &postgres; nommée qui participe à la réplication.</para> 62 58 63 <para> It is defined, near the beginning of each Slonik script, using the directive:</para>59 <para>Le nom du noeud est défini au début de chaque script Slonik, avec la directive :</para> 64 60 <programlisting> 65 61 NODE 1 ADMIN CONNINFO = 'dbname=testdb host=server1 user=slony'; 66 62 </programlisting> 67 63 68 <para> The <xref linkend="admconninfo"/> information indicates database69 connection information that will ultimately be passed to the 70 <function>PQconnectdb()</function> libpq function.</para>64 <para>La ligne <xref linkend="admconninfo"/> précise les informations 65 de connexion qui seront utilisées par la fonction libpq 66 <function>PQconnectdb()</function>.</para> 71 67 72 <para> Thus, a &slony1; cluster consists of:</para>68 <para>Ainsi un cluster &slony1; se compose :</para> 73 69 <itemizedlist> 74 <listitem><para> A cluster name</para></listitem> 75 <listitem><para> A set of &slony1; nodes, each of which has a namespace based on that cluster name</para></listitem> 70 <listitem><para> d'un nom de cluster</para></listitem> 71 <listitem><para> d'un ensemble de noeuds &slony1;, qui disposent chacun d'un schéma 72 portant le nom du cluster</para></listitem> 76 73 </itemizedlist> 77 74 </sect2> 78 <sect2><title> Replication Set</title>75 <sect2><title>Ensemble de réplication</title> 79 76 <indexterm> 80 <primary> replication set</primary>77 <primary>Ensemble de réplication</primary> 81 78 </indexterm> 82 79 83 <para> A replication set is defined as a set of tables and sequences84 that are to be replicated between nodes in a &slony1; cluster.</para>80 <para>Un ensemble de réplication est défini comme un ensemble de tables et de séquences qui 81 doivent être répliquées entre plusieurs noeuds dans un cluster &slony1;.</para> 85 82 86 <para> You may have several sets, and the <quote>flow</quote> of87 replication does not need to be identical between those sets.</para>83 <para>Vous pouvez avoir plusieurs sets, et le <quote>flux</quote> de réplication 84 n'est pas nécessaire identique pour tous les ensembles.</para> 88 85 </sect2> 89 86 90 <sect2><title> Origin , Providers and Subscribers</title>87 <sect2><title> Origine, Fournisseurs et Abonnés</title> 91 88 <indexterm> 92 <primary> origin node</primary>89 <primary>Noeud d'origine</primary> 93 90 </indexterm> 94 91 <indexterm> 95 <primary> provider node</primary>92 <primary>Noeud fournisseur</primary> 96 93 </indexterm> 97 94 98 <para> Each replication set has some origin node, which is the99 <emphasis>only</emphasis> place where user applications are permitted 100 to modify data in the tables that are being replicated. This might 101 also be termed the <quote>master provider</quote>; it is the main 102 place from which data is provided.</para>95 <para>Chaque ensemble de réplication a un noeud d'origine, qui est le <emphasis>seul</emphasis> endroit 96 où les applications sont autorisées à modifier les données répliquées. On peut aussi 97 rencontrer le terme <quote>noeud maître</quote>; Il s'agit de noeud principal qui 98 fournit les données. 99 </para> 103 100 104 101 <indexterm> 105 <primary> subscriber node</primary>102 <primary>Noeud Abonné</primary> 106 103 </indexterm> 107 104 108 <para>Other nodes in the cluster subscribe to the replication set, 109 indicating that they want to receive the data.</para> 105 <para>Les autres noeuds du cluster s'abonne à l'ensemble de réplication, 106 ce qui indique qu'ils veulent recevoir les données. 107 </para> 110 108 111 <para> The origin node will never be considered a112 <quote> subscriber.</quote> (Ignoring the case where the cluster is113 reshaped, and the origin is expressly shifted to another node.) But 114 &slony1; supports the notion of cascaded subscriptions, that is, a 115 node that is subscribed to some set may also behave as a 116 <quote>provider</quote> to other nodes in the cluster for that 117 replication set.</para>109 <para>Le noeud d'origine ne sera jamais considéré comme un 110 <quote>abonné</quote> (On ignore ici le cas ou le cluster est restructuré 111 et où l'origine est explicitement déplacée sur un autre noeud). 112 Mais &slony1; supporte la notion d'abonnements en cascade, c'est à dire 113 qu'un noeud qui est abonné à un ensemble de réplication, peut également se 114 comporter comme un <quote>fournisseur</quote> du même ensemble de réplication 115 pour d'autres noeuds du cluster.</para> 118 116 </sect2> 119 117 120 <sect2><title> slon Daemon</title>118 <sect2><title>Le démon slon</title> 121 119 122 <indexterm><primary> slon daemon</primary></indexterm>120 <indexterm><primary>démon slon</primary></indexterm> 123 121 124 <para> For each node in the cluster, there will be a<xref125 linkend="slon"/> process to manage replication activity for that node.122 <para>Pour chaque noeud du cluster, il y a un processus <xref 123 linkend="slon"/> qui gÚre l'activité de réplication pour le noeud. 126 124 </para> 127 125 128 <para> <xref linkend="slon"/> is a program implemented in C that 129 processes replication events. There are two main sorts of events:</para> 126 <para> <xref linkend="slon"/> est un programme implémenté en C qui traite les 127 évÚnements de réplication. Il y a deux principales sortes d'événements : 128 </para> 130 129 131 130 <itemizedlist> 132 131 133 <listitem><para> Configuration events</para>132 <listitem><para>Les évÚnements de configuration</para> 134 133 135 <para> These normally occur when a <xref linkend="slonik"/> script is136 run, and submit updates to the configuration of thecluster. </para>134 <para> Ils se produisent en général lorsqu'un script <xref linkend="slonik"/> est exécuté, 135 et qu'il modifie la configuration du cluster. </para> 137 136 </listitem> 138 137 139 <listitem><para> <command>SYNC</command> events</para>138 <listitem><para> Les événements <command>SYNC</command></para> 140 139 141 <para> Updates to the tables that are replicated are grouped together142 into <command>SYNC</command>s; these groups of transactions are 143 applied together to the subscriber nodes.</para>140 <para> Les mises à jour des tables répliquées sont regroupées dans des événements <command>SYNC</command>s; 141 Ces groupes de transactions sont appliquées ensemble sur les noeuds abonnés. 142 </para> 144 143 </listitem> 145 144 </itemizedlist> 146 145 </sect2> 147 146 148 <sect2><title> slonik Configuration Processor</title>147 <sect2><title>La commande slonik</title> 149 148 150 <indexterm><primary> slonik configuration processor</primary></indexterm>149 <indexterm><primary>La commande slonik</primary></indexterm> 151 150 152 <para> The <xref linkend="slonik"/> command processor processes scripts153 in a <quote>little language</quote> that are used to submit events to 154 update the configuration of a &slony1; cluster. This includes such 155 things as adding and removing nodes, modifying communications paths, 156 adding or removing subscriptions.151 <para> La commande <xref linkend="slonik"/> traite des scripts 152 écrits dans un <quote>langage spécial</quote> qui est utilisé pour 153 soumettre des événements de configuration du cluster &slony1; cluster. 154 Cela comprend des actions telles que l'ajout et la suppression de noeuds, 155 la modifications des voies de communications, l'ajout ou la suppression d'abonnements. 157 156 </para> 158 157 </sect2>

