-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriak_beam2019.html
248 lines (221 loc) · 12.4 KB
/
riak_beam2019.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Present and Immediate Future of Riak</title>
<meta name="description" content="An overview of some history of Riak, and something of its future direction">
<meta name="author" content="Martin Sumner">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section data-background="#C7D5EB">
<h2>Riak - A Distributed Systems Story on The Beam</h2>
<img width="400" height="400" data-src="images/bashoman_computer.png"/>
<p><small>@masleeds</small></p>
</section>
<section data-background="#C7D5EB">
<h2>Riak - Ten Year Potted History</h2>
<p align="left">2009 - Initial Riak preview released</p>
<p align="left">2011 - 1.0 and the fight for stability</p>
<p align="left">2014 - 2.0 and the fight for new markets and developer productivity</p>
<p align="left">2017 - Basho into receivership, bet365 open assets</p>
</section>
<section data-background="#C7D5EB">
<h2>Riak - Open Source Releases</h2>
<p align="left">2.2.6 - 2018 - Fully Open, Simple Enhancements</p>
<p align="left">2.9.0 - May 2019 - Leveled (CodeBEAM 2017)</p>
<p align="left">2.9.1 - Autumn 2019 - TictacAAE (CodeBEAM 2018)</p>
<p align="left">3.0 - Winter 2019/2020 - OTP 20 & Rebar3</p>
</section>
<section data-background="#A3C2FF">
<h2>Riak - Failure of Mass Adoption</h2>
<img width="400" height="400" data-src="images/all_the_basho_men.jpg"/>
</section>
<section data-background="#A3C2FF">
<h2>Riak Off-Trend</h2>
<p align="left">Speed to market is king</p>
<p align="left">One machine is powerful, many machines is a service</p>
<p align="left">Enterprise purchases - bad measures and bad predictions</p>
</section>
<section data-background="#A3C2FF">
<h2>The Riak Niche</h2>
<p align="left">Availability <b>and</b> Durability are non-negotiable</p>
<p align="left">Guarantees are constant through failure ...</p>
<p align="left">... Operators need to eventually react</p>
<p align="left">Latency is acceptable when it is predictable</p>
<p align="left">Minimal decision trees, minimal operating procedures</p>
<p align="left">Big but finite</p>
</section>
<section data-background="#E6E68A">
<h2>Hello Theory, Meet Practice</h2>
<img width="400" height="400" data-src="images/basho_dude.png">
</section>
<section data-background="#E6E68A">
<h2>Sibling Explosion</h2>
<img width="600" height="400" data-src="images/sibling_explosion.png">
</section>
<section data-background="#E6E68A">
<h2>Aggressive Recovery</h2>
<img width="600" height="400" data-src="images/riak_handoff_wild.jpg">
</section>
<section data-background="#E6E68A">
<h2>TCP Incast</h2>
<img width="600" height="350" data-src="images/tcp_incast.png">
</section>
<section data-background="#E6E68A">
<h2>The Challenge of Problem Discovery</h2>
<p align="left">Discover problems through developer reasoning</p>
<p align="left">Discover problems through testing</p>
<p align="left">Discover problems through a support network</p>
<p align="left">Better time allocation, but ...</p>
<p align="left">... Reduced capacity to reason</p>
<p align="left">... Reduced access to information</p>
</section>
<section data-background="#E6E68A">
<h2>Evolving a long-term solution</h2>
<p align="left">Discipline - test and dialyzer</p>
<p align="left">Independent assurance - Quviq as a testing service</p>
<p align="left">Avoid low-reward improvements - get on track with OTP</p>
</section>
<section data-background="#E6E68A">
<h2>Riak Community Changes</h2>
<p align="left"><strong>Riak 2.2.6</strong></p>
<p align="left">Fixed a bug in cluster claim hidden by a testing bug</p>
<p align="left">Node confirms (to replace pw=2)</p>
<p align="left"><strong>Riak 3.0 and beyond</strong></p>
<p align="left">Tackling R16 and non-erlang code</p>
</section>
<section data-background="#E6E68A">
<h2>Free improvement - Index perc99</h2>
<img width="1000" height="500" data-src="images/OTP20_2i99p.png">
</section>
<section data-background="#80AAAD">
<h2>One Slow Node</h2>
<img width="200" height="200" data-src="images/one_to_three.png"/>
</section>
<section data-background="#80AAAD">
<h2>One Slow Node</h2>
<p align="left">Caused by background jobs</p>
<p align="left">Caused by failure with RAID</p>
<p align="left">Caused by non-homogenous hardware</p>
<p align="left">Caused by query co-ordination</p>
<p align="left">Caused by hot keys</p>
<p align="left">A slow node < A failed node</p>
<p align="left">Fails predictable latency promise - PUTs and 2i</p>
</section>
<section data-background="#80AAAD">
<h2>Riak Community Changes</h2>
<p align="left"><strong>Riak 2.9.0 - Released Today!!</strong></p>
<p align="left">Poll queues before selecting PUT co-ordinator</p>
<p align="left">Allow support for n HEAD, 1 GET</p>
<p align="left">50% improvement in throughput</p>
<p align="left">Order of magnitude improvement in mean 2i time</p>
<p align="left">Order of magnitude improvement 99th percentile PUT time</p>
</section>
<section data-background="#E8CC9D">
<h2>Reconciliation</h2>
<img width="400" height="350" data-src="images/mhen97_hi.jpg"/>
</section>
<section data-background="#E8CC9D">
<h2>The reconciliation problem</h2>
<p align="left">More than one cluster containing the data</p>
<p align="left">Perhaps not every cluster aligns data the same way</p>
<p align="left">Perhaps some clusters have only a subset of data</p>
<p align="left">How do we reconcile these clusters?</p>
<p align="left">... Without causing one slow node</p>
</section>
<section data-background="#E8CC9D">
<h2>Riak Community Changes</h2>
<p align="left">Tictac AAE - Talk @ CodeBEAM 2018</p>
<p align="left">Implemented for intra-cluster AAE in 2.9.0</p>
<p align="left">Now testing inter-cluster AAE in 2.9.1</p>
<p align="left">Added last-modified-date extension to feature</p>
<p align="left">Sinplify/fixing real-time replication</p>
</section>
<section data-background="#A3C2FF">
<h2>Developer Productivity</h2>
<img width="500" height="150" data-src="images/developer_productivity.png"/>
</section>
<section data-background="#A3C2FF">
<h2>Developer Productivity</h2>
<p align="left">Solr integration</p>
<p align="left">Conflict-free Replicated Data Types</p>
<p align="left">Strong consistency</p>
<p align="left">Map-Reduce (JS, Erlang)</p>
</section>
<section data-background="#A3C2FF">
<h2>Operator Productivity</h2>
<p align="left"><strong>What is in the database?</strong></p>
<p align="left">You tell me ...</p>
<p align="left">... You put it in there</p>
<p align="left"><strong>How do I backup the database?</strong></p>
<p align="left">Funny you should ask ...</p>
<p align="left">... A lot of people ask that question</p>
</section>
<section data-background="#A3C2FF">
<h2>Riak Community Changes</h2>
<p align="left"><strong>Developer</strong></p>
<p align="left">No 3.0 retirement -> maybe Riak Nucleus</p>
<p align="left">Funding shortfall for further enhancements</p>
<p align="left"><strong>Operator</strong></p>
<p align="left">Operator query support in 2.9.0</p>
<p align="left">Hot backups, low-amplification backups</p>
</section>
<section data-background="#A3C2FF">
<h2>Is there a Riak future?</h2>
<p align="left">Risk management and the power of control</p>
<p align="left">Uncertainty was troubling</p>
<p align="left">The day-job pushed estimation way-off the mark</p>
<p align="left">Signs of Improvement - Contributors, Releases</p>
</section>
<section data-background="#A3C2FF">
<h2>Thank-You</h2>
<p>http://martinsumner.github.io/presentations/riak_beam2019.html#/</p>
<p>@masleeds</p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>