Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Riak Meetup Stockholm 1/11/2012

319 views

Published on

  • Be the first to comment

  • Be the first to like this

Riak Meetup Stockholm 1/11/2012

  1. 1. Emilio NyarayTwitter: Bip@KivraLabs Thelin@nyaray@bipthelin
  2. 2. (Brief) History
  3. 3. missionTHE vision
  4. 4. RIAKPractices
  5. 5. Logging
  6. 6. 1. MetricsAnything youd want toplot on a graph
  7. 7. 2. (Un)structured Log data loggingyoud want to process
  8. 8. 3. Applicationlogging Error, Notice, Warning, etc
  9. 9. Requirements○ Search○ Archive○ Aggregate logs○ Slice logs by arbitrary dimensions○ Alerting
  10. 10. Lager Logglygithub.com/kivra/lager_loggly.git
  11. 11. Lager Sysloggithub.com/basho/lager_syslog
  12. 12. ~197 SLOC ~23 SLOC
  13. 13. Lager{lager, [ {handlers, [ {lager_console_backend, info}, {lager_loggly_backend, [<<"Riak">>, info, 5, 3, "https://<Loggly URI>"]}, {lager_loggly_backend, [<<"Riak">>, error, 5, 3, "https://<Loggly URI>"]}, {lager_file_backend, [ {"/path/error.log", error, 10485760, "$D0", 5}, {"/path/console.log", info, 10485760, "$D0", 5} ]} ]}, ...]},
  14. 14. LazyUpgrade
  15. 15. Riak <3Its fun to use upgrade manage discuss also, hard to resist
  16. 16. Riak <3, really!Bu-bu-but... MySQL PostgreSQL MSSQL OldSQL ... same as before NoScale NoOps NoSQL
  17. 17. Schema that! Scr ew
  18. 18. Schema-less... but, STRUCTURED Typo, its JSON
  19. 19. Schema-less...Or is it?Intermediate -record(user, { Records password = <<"l0ln00b">, Before name = <<"noname">>, Store i_primary_email = <<"ih@ck.se">, i_primary_phone = <<"461337">>, i_ssn = <<"0123456789">>, l_tenant = {<<"B">>, <<"K">>} }). Concerns? Add/Rename Field + Search
  20. 20. Embrace Change Be flexible, stay focused, know your dataWhat does that even mean?!
  21. 21. Upgrade Path(tm)schema_upgrade(?CURR_VSN, Props) -> Props;schema_upgrade(1, Props) -> % Awesome upgrade, % also defines NewProps schema_upgrade(Vsn+1, NewProps).
  22. 22. Simplified access Everything is fun Save po-TAY-to... Read po-TAH-to!
  23. 23. Thank You!Youve been great. Go away now, drink some beer!

×