Repository Public MIT Research preview
1% MA02-F06 — Reprise avec attente exponentielle, sans puis avec jitter : trois clients qui échouent au même instant.2% Idée : doubler l'attente espace les tentatives, mais si tous doublent de la même façon, ils reviennent ENSEMBLE,3% vague après vague. Tirer l'attente au hasard entre 0 et la borne les disperse. Hypothèse de lecture : chaque4% tentative échoue aussitôt. Données : attente_avant_reprise (limites.py), MA02-donnees.tex. Calcul, pas mesure.5\input{MA02-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \path (0,0) rectangle (142,56);8 \def\ech{.0182}% mm par milliseconde9 \def\xo{24}%10 % --- Sans jitter11 \node[atlas heading, anchor=west] at (0,53.6) {Attente exponentielle, sans jitter};12 \foreach \t [count=\n] in \MBBackoffSans {13 \fill[maRisque, fill opacity=.22] (\xo+\t*\ech-1.1,33.4) rectangle ++(2.2,15.4);14 \node[atlas note, anchor=south, text=maRisque, inner sep=.6pt, font=\AtlasTabularFont\AtlasSizeTiny\bfseries] at (\xo+\t*\ech,48.9) {\n};}15 \foreach \k in {1,2,3}{16 \node[atlas note, anchor=east, text=maTexte] at (\xo-3,51-4.6*\k) {client \k};17 \draw[maNeutre, line width=.5pt] (\xo,51-4.6*\k) -- ++(116,0);18 \foreach \t in \MBBackoffSans {\node[ma evenement] at (\xo+\t*\ech,51-4.6*\k) {};}}19 \foreach \deb/\larg [count=\n] in \MBBackoffFenetres {20 \draw[maDecision, line width=.8pt, {Bar[width=3pt]}-{Bar[width=3pt]}] (\xo+\deb*\ech+.4,32.2) -- ++(\larg*\ech-.8,0);21 \ifnum\n>2 \node[atlas note, anchor=north, text=maDecision, inner sep=1pt] at (\xo+\deb*\ech+.5*\larg*\ech,31.8) {\larg\ ms};\fi}22 \node[atlas note, anchor=west, text=maRisque] at (88,53.6) {les trois reviennent au même instant};23 % --- Avec jitter24 \node[atlas heading, anchor=west] at (0,23.2) {Avec jitter : chaque attente tirée entre 0 et la borne (200, 400, 800… ms)};25 \newcommand{\MBclient}[2]{% numéro, instants26 \node[atlas note, anchor=east, text=maTexte] at (\xo-3,21.2-4.6*#1) {client #1};27 \draw[maNeutre, line width=.5pt] (\xo,21.2-4.6*#1) -- ++(116,0);28 \foreach \t in #2 {\node[ma evenement, draw=maValide] at (\xo+\t*\ech,21.2-4.6*#1) {};}}29 \MBclient{1}{\MBBackoffJitterUn}\MBclient{2}{\MBBackoffJitterDeux}\MBclient{3}{\MBBackoffJitterTrois}30 % Axe31 \draw[maNeutre, line width=.8pt, -{Stealth[length=4pt,width=3.6pt]}] (\xo,4.4) -- ++(118,0);32 \foreach \t in {0,1000,2000,3000,4000,5000,6000}{\draw[maNeutre, line width=.6pt] (\xo+\t*\ech,4.4) -- ++(0,-1.1) node[atlas note, anchor=north, inner sep=1pt] {\t};}33 \node[atlas note, anchor=north east, inner sep=1pt] at (142,3.2) {ms};34 \node[atlas tag=maDecision, anchor=south west] at (0,0) {CALCUL};35\end{tikzpicture}36