diff --git a/.github/workflows/latex-dependencies.sh b/.github/workflows/latex-dependencies.sh index 73fe1831..48930459 100755 --- a/.github/workflows/latex-dependencies.sh +++ b/.github/workflows/latex-dependencies.sh @@ -29,3 +29,4 @@ tlmgr install pdflscape tlmgr install accsupp tlmgr install tikzmark tlmgr install setspace +tlmgr install animate diff --git a/slides/deployment/main.tex b/slides/deployment/main.tex index 45c45cad..bd184f34 100644 --- a/slides/deployment/main.tex +++ b/slides/deployment/main.tex @@ -1,10 +1,10 @@ \documentclass{slide} % Comment out animate package for GitHub commited version. -%\usepackage{animate} +\usepackage{animate} % Only needed if final slide with manually created table is used. -%\usepackage{colortbl} +\usepackage{colortbl} \usepackage{changepage} \usepackage{setspace} @@ -16,7 +16,8 @@ \title{Deployment Strategies} \subtitle{CSSE6400} \author{Richard Thomas} -\date{\week{11}} +\date{\week{12}} + \begin{document} @@ -154,8 +155,8 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/recreate/fnum}{1}{20} + % Replace with \includegraphics of the merged image for slides published via GitHub. +% \animategraphics[trim=10 115 10 100,clip,controls,buttonsize=1em,width=1.05\linewidth]{6}{diagrams/recreate/fnum}{1}{20} \includegraphics[height=\textheight]{diagrams/recreate.png} \end{frame} \note[itemize]{ @@ -196,9 +197,9 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/rolling/fnum}{1}{27} - \includegraphics[height=\textheight]{diagrams/rolling/fnum15.png} + % Replace with \includegraphics of the merged image for slides published via GitHub. + \animategraphics[trim=10 115 10 100,clip,poster=14,controls,buttonsize=1em,width=1.05\linewidth]{6}{diagrams/rolling/fnum}{1}{27} +% \includegraphics[height=\textheight]{diagrams/rolling/fnum15.png} \end{frame} \note[itemize]{ \item Slowly roll out new version. @@ -249,9 +250,9 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/blue-green/fnum}{1}{14} - \includegraphics[height=\textheight]{diagrams/blue-green/fnum10.png} + % Replace with \includegraphics of the merged image for slides published via GitHub. + \animategraphics[trim=10 115 10 100,clip,poster=9,controls,buttonsize=1em,width=1.05\linewidth]{6}{diagrams/blue-green/fnum}{1}{14} +% \includegraphics[height=\textheight]{diagrams/blue-green/fnum10.png} \end{frame} \note[itemize]{ \item \textbf{V2} deployed alongside \textbf{V1}, including same number of instances. @@ -299,9 +300,9 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/canary/fnum}{1}{15} - \includegraphics[height=\textheight]{diagrams/canary/fnum14.png} + % Replace with \includegraphics of the merged image for slides published via GitHub. + \animategraphics[trim=10 115 10 100,clip,poster=13,controls,buttonsize=1em,width=1.05\linewidth]{4}{diagrams/canary/fnum}{1}{15} +% \includegraphics[height=\textheight]{diagrams/canary/fnum14.png} \end{frame} \note[itemize]{ \item Gradually shift traffic from \textbf{V1} to \textbf{V2}. @@ -337,9 +338,9 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/a-b/fnum}{1}{19} - \includegraphics[height=\textheight]{diagrams/a-b/fnum19.png} + % Replace with \includegraphics of the merged image for slides published via GitHub. + \animategraphics[trim=10 115 10 100,clip,poster=last,controls,buttonsize=1em,width=1.05\linewidth]{6}{diagrams/a-b/fnum}{1}{19} +% \includegraphics[height=\textheight]{diagrams/a-b/fnum19.png} \end{frame} \note[itemize]{ \item Actually it's A/B Testing. @@ -379,9 +380,9 @@ \vspace{1pt} \centering % \animategraphics output only works in Adobe Acrobat. - % Replace with \includegraphics of the merged image. -% \animategraphics[trim=10 100 10 100,clip,controls,width=\linewidth]{7}{diagrams/shadow/fnum}{1}{15} - \includegraphics[height=\textheight]{diagrams/shadow/fnum14.png} + % Replace with \includegraphics of the merged image for slides published via GitHub. + \animategraphics[trim=10 115 10 100,clip,poster=13,controls,buttonsize=1em,width=1.05\linewidth]{6}{diagrams/shadow/fnum}{1}{15} +% \includegraphics[height=\textheight]{diagrams/shadow/fnum14.png} \end{frame} \note[itemize]{ \item Complex to setup. @@ -456,18 +457,20 @@ \note{There isn't any one perfect deployment strategy.} \begin{frame}{Deployment Considerations \cite{deployment-strategies}} - \begin{adjustwidth}{-12mm}{-12mm} - \centering - \includegraphics[height=0.93\textheight]{diagrams/deployment_strategies.png} - \end{adjustwidth} + \centering + \includegraphics[height=0.93\textheight]{diagrams/deployment_strategies.png} \end{frame} % Manually created table of deployment_strategies.png content. %\begin{frame}{Deployment Considerations} +%\vspace{-10mm} %\begin{table} +%\begin{adjustwidth}{-12mm}{-12mm} %\centering +%% Figure out how to fix first row's text having double-line spacing after line break. +%\def\arraystretch{1.5} %\begin{tabular}{lccccccc} -%\rowcolor[rgb]{0.835,1,0.835} \multicolumn{1}{c}{Strategy} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Zero\\Downtime\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Real\\Traffic\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Targetted\\Users\end{tabular} & Cost & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Rollback\\Duration\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Impact\\on Users\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Setup\\Complexity\end{tabular} \\ +%\rowcolor[rgb]{0.835,1,0.835} \multicolumn{1}{c}{Strategy} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Zero\\Downtime\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Real\\Traffic\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Targeted\\Users\end{tabular} & Cost & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Rollback\\Duration\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Impact\\on Users\end{tabular} & \begin{tabular}[c]{@{}>{\cellcolor[rgb]{0.835,1,0.835}}c@{}}Setup\\Complexity\end{tabular} \\ %\rowcolor[rgb]{0.941,1,1} Recreate & N & N & N & \$ & Long & High & Negligible \\ %\rowcolor[rgb]{1,0.937,1} Rolling & Y & N & N & \$ & Long & Low & Low \\ %\rowcolor[rgb]{0.941,1,1} Blue/Green & Y & N & N & \$\$\$ & Negligible & Medium & Medium \\ @@ -475,6 +478,7 @@ %\rowcolor[rgb]{0.941,1,1} A/B Testing & Y & Y & Y & \$\$ & Short & Low & High \\ %\rowcolor[rgb]{1,0.937,1} Shadow & Y & Y & N & \$\$\$ & Negligible & Negligible & High %\end{tabular} +%\end{adjustwidth} %\end{table} %\end{frame}