SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Riak Operations
                               Grant Schofield
                             Developer Advocate
                           Basho Technologies, Inc.




basho
Friday, April 15, 2011
Installing Riak
                         ‣ http://downloads.basho.com
                         ‣ Packages (Debs, RPMs, Pkgs)
                         ‣ Source Install (Requires Erlang)
                         ‣ “Dev” Installs



basho
Friday, April 15, 2011
Where is Riak
                         ‣ Source and Solaris
                         ‣ /etc/riak
                         ‣ /usr/sbin/riak|riak-admin
                         ‣ /usr/lib|lib64/riak << Meat
                         ‣ /var/log/riak << Log Dir
                         ‣ /var/lib/riak << Data Dir
                         ‣ /tmp/riak << Sockets
basho
Friday, April 15, 2011
/etc/riak
                         ‣ app.config
                            ‣ Riak Configuration
                            ‣ riak_core,riak_kv, bitcask
                         ‣ vm.args
                            ‣ Erlang VM Settings
                            ‣ -name riak@<ip>

basho
Friday, April 15, 2011
/usr/sbin/riak
                         ‣ Wrapped by /etc/init.d/riak
                         ‣ Runs Riak User (sudo)
                         ‣ start | stop
                         ‣ restart|reboot
                         ‣ ping
                         ‣ console | attach


basho
Friday, April 15, 2011
/usr/sbin/riak-admin
                         ‣ join | leave | remove | reip
                         ‣ backup | restore (cluster or node)
                         ‣ test | status | js_reload
                         ‣ wait-for-service | ringready | transfers
                         ‣ cluster_info



basho
Friday, April 15, 2011
riak-admin status
                                  vnode gets/puts in
                                    read-repairs in the
                                 the last 60 seconds gets/puts
                                           total vnode
                                      last 60 seconds
                                     node gets since start
                                                  in the
                                           total node gets
                                     last 60 seconds
                                              since start times
                                                 get_fsm
                                   node puts in   inthe
                                                     microseconds
                                            total node puts
                                   last 60 seconds
                                               since start
                                                put_fsm times
                                        total read-repairs
                                                 in microseconds
                                             since start
basho
Friday, April 15, 2011
riak-admin transfers




basho
Friday, April 15, 2011
riak-admin cluster_info




basho
Friday, April 15, 2011
cluster_info cont...
                                    Total Memory Use




                                    <0.108.0>??




basho
Friday, April 15, 2011
<0.108.0>

                                snmp process




basho
Friday, April 15, 2011
mailboxes
                         (message queue)




basho
Friday, April 15, 2011
mailboxes cont..




basho
Friday, April 15, 2011
Logging
                         ‣ Not Typical (Built in Rotation)
                         ‣ /var/log/riak/erlang.log.X
                            ‣ Console Output
                         ‣ /var/log/riak/sasl-error.log
                            ‣ Errors and Crash Reports
                         ‣ /var/log/riak/sasl << Report Browser

basho
Friday, April 15, 2011
Using rb




basho
Friday, April 15, 2011
Using rb cont...




basho
Friday, April 15, 2011
Using rb cont...




basho
Friday, April 15, 2011
Riak Performance
                         ‣ MANY Variables
                         ‣ Backend Choice (Innostore vs Bitcask)
                         ‣ Hardware vs Virtualized
                         ‣ Access Patterns
                         ‣ Correct System Configuration
                         ‣ Knowing your Environment


basho
Friday, April 15, 2011
Bitcask Tuning
               ‣ KeyDir is in Memory
               ‣ Fileystem Cache (Access Profile Considerations)
               ‣ Merge Trigger Settings
               ‣ Scheduling Bitcask Merges
               ‣ Key Expiration




basho
Friday, April 15, 2011
Innostore Tuning
                         ‣ Similar to MySQL + InnoDB
                         ‣ buffer pool size
                         ‣ o_direct
                         ‣ log_files_in_groups
                         ‣ Separate Spindles for Log and Data




basho
Friday, April 15, 2011
Tools You Should Know
                         ‣ riak-admin status
                         ‣ top
                         ‣ iostat -x 2
                         ‣ sar
                         ‣ basho_bench




basho
Friday, April 15, 2011
A Basic Bottleneck




basho
Friday, April 15, 2011
basho
Friday, April 15, 2011
Tips for Performance
                         ‣ Start with a “DB” Like Machine Profile
                         ‣ noatime mounts
                         ‣ Ring Size
                         ‣ Horizontal vs Vertical Scaling
                         ‣ Basho Bench Testing
                         ‣ Limit List Keys and Full Bucket
                           MapReduce
                         ‣ Graph Everything

basho
Friday, April 15, 2011
Metrics & Monitoring
                         ‣ Integrates with Everything!!
                         ‣ SNMP (Enterprise Plug)
                         ‣ JMX (Enterprise Plug)
                         ‣ Wrapping riak-admin status
                         ‣ /ping
                         ‣ /stats
                         ‣ Read/Write a Key
basho
Friday, April 15, 2011
Load Balancing
                         ‣ HTTP - HAProxy, nginx, etc...
                         ‣ Protocol Buffers - Any TCP Load Balancer
                         ‣ Least Connected




basho
Friday, April 15, 2011
Backups
                         ‣ Different Depending on Backend
                         ‣ Innostore
                           ‣ riak-admin backup (node | cluster)
                         ‣ Bitcask
                           ‣ rsync
                           ‣ snapshots
                           ‣ cp ?
                         ‣ Enterprise Replication

basho
Friday, April 15, 2011
A node has horked!
                            Now what?
                         ‣ That Depends.....
                         ‣ How did the node die?
                         ‣ Do you still have the data?
                         ‣ Start the Node
                         ‣ No data?
                         ‣ Restore or Replace Node


basho
Friday, April 15, 2011
Configuration
                               Management
                         ‣ Riak is Unix
                         ‣ Chef, Puppet, Etc.
                         ‣ Chef Cookbook is Advanced
                         ‣ “Auto” Joining Nodes to a Cluster
                           (ringready)
                         ‣ Node vs IP Naming (vm.args -name)


basho
Friday, April 15, 2011
Security
                         ‣ SSL
                         ‣ No Built In Authentication
                         ‣ HTTP Auth Via Proxy
                         ‣ Riak on the Internet?
                         ‣ Follow Best Practices




basho
Friday, April 15, 2011
System
                          Recommendations
                         ‣ Multi-core 64-bit CPUs
                         ‣ The More RAM the Better
                         ‣ Fast Disk (Raid0? SSD? SAS?)
                         ‣ SAN vs Local Disk
                         ‣ Virtualization Caveats



basho
Friday, April 15, 2011
EC2 and EBS
                    ‣ Follow DB Best Practices
                    ‣ To EBS or Not to EBS?
                    ‣ Raid0 is Faster, but an OPS Headache
                    ‣ Speed vs Fault Tolerance (Availability Zones)
                    ‣ Specific Tweaks for EC2 (net_ticktime)
                    ‣ There are MANY successful deployments.


basho
Friday, April 15, 2011
Obligatory Plug

                       For more information about support,
                      professional services, or an Enterprise
                   licenses please contact info@basho.com or
                     visit http://www.basho.com/contact.php




basho
Friday, April 15, 2011
Questions?



basho
Friday, April 15, 2011

Weitere ähnliche Inhalte

Andere mochten auch

Introducing Riak
Introducing RiakIntroducing Riak
Introducing RiakKevin Smith
 
Riak Training Session — Surge 2011
Riak Training Session — Surge 2011Riak Training Session — Surge 2011
Riak Training Session — Surge 2011DstroyAllModels
 
Riak (Øredev nosql day)
Riak (Øredev nosql day)Riak (Øredev nosql day)
Riak (Øredev nosql day)Sean Cribbs
 
Riak - From Small to Large
Riak - From Small to LargeRiak - From Small to Large
Riak - From Small to LargeRusty Klophaus
 
Distributed Key-Value Stores- Featuring Riak
Distributed Key-Value Stores- Featuring RiakDistributed Key-Value Stores- Featuring Riak
Distributed Key-Value Stores- Featuring Riaksamof76
 
Riak in Ten Minutes
Riak in Ten MinutesRiak in Ten Minutes
Riak in Ten MinutesJon Meredith
 

Andere mochten auch (6)

Introducing Riak
Introducing RiakIntroducing Riak
Introducing Riak
 
Riak Training Session — Surge 2011
Riak Training Session — Surge 2011Riak Training Session — Surge 2011
Riak Training Session — Surge 2011
 
Riak (Øredev nosql day)
Riak (Øredev nosql day)Riak (Øredev nosql day)
Riak (Øredev nosql day)
 
Riak - From Small to Large
Riak - From Small to LargeRiak - From Small to Large
Riak - From Small to Large
 
Distributed Key-Value Stores- Featuring Riak
Distributed Key-Value Stores- Featuring RiakDistributed Key-Value Stores- Featuring Riak
Distributed Key-Value Stores- Featuring Riak
 
Riak in Ten Minutes
Riak in Ten MinutesRiak in Ten Minutes
Riak in Ten Minutes
 

Ähnlich wie Riak Operations

Oracle Release 12 E-Business Suite Patching Best Practices
Oracle Release 12 E-Business Suite Patching Best PracticesOracle Release 12 E-Business Suite Patching Best Practices
Oracle Release 12 E-Business Suite Patching Best PracticesScott Jenner
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 
Using Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed ApplicationsUsing Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed ApplicationsBasho Technologies
 
Percona xtrabackup - MySQL Meetup @ Mumbai
Percona xtrabackup - MySQL Meetup @ MumbaiPercona xtrabackup - MySQL Meetup @ Mumbai
Percona xtrabackup - MySQL Meetup @ MumbaiNilnandan Joshi
 
about Debian "squeeze" @201002 OSC Tokyospring
about Debian "squeeze" @201002 OSC Tokyospringabout Debian "squeeze" @201002 OSC Tokyospring
about Debian "squeeze" @201002 OSC TokyospringHideki Yamane
 
Subversion Day Berlin 2011 Configuration Management With Subversion And Rpm
Subversion Day Berlin 2011 Configuration Management With Subversion And RpmSubversion Day Berlin 2011 Configuration Management With Subversion And Rpm
Subversion Day Berlin 2011 Configuration Management With Subversion And RpmSchlomo Schapiro
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooinovex GmbH
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios
 
Filesystem Performance from a Database Perspective
Filesystem Performance from a Database PerspectiveFilesystem Performance from a Database Perspective
Filesystem Performance from a Database PerspectiveMark Wong
 
[ElasticStack]What happens when you visualize servers exposed to the world?
[ElasticStack]What happens when you visualize servers exposed to the world? [ElasticStack]What happens when you visualize servers exposed to the world?
[ElasticStack]What happens when you visualize servers exposed to the world? Masamitsu Maehara
 
1. Scaling PHP/MySQL...Presentation from Flickr
	
1.	
Scaling PHP/MySQL...Presentation from Flickr	
1.	
Scaling PHP/MySQL...Presentation from Flickr
1. Scaling PHP/MySQL...Presentation from Flickrakshat
 
HBaseConAsia2019 Keynote
HBaseConAsia2019 KeynoteHBaseConAsia2019 Keynote
HBaseConAsia2019 KeynoteMichael Stack
 
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...Valeriy Kravchuk
 
Rails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & ToolsRails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & Toolsguest05c09d
 
Migrating to a bazel based CI system: 6 learnings
Migrating to a bazel based CI system: 6 learnings Migrating to a bazel based CI system: 6 learnings
Migrating to a bazel based CI system: 6 learnings Or Shachar
 
CPANTS: Kwalitative website and its tools
CPANTS: Kwalitative website and its toolsCPANTS: Kwalitative website and its tools
CPANTS: Kwalitative website and its toolscharsbar
 
Introduction to Ansible (Pycon7 2016)
Introduction to Ansible (Pycon7 2016)Introduction to Ansible (Pycon7 2016)
Introduction to Ansible (Pycon7 2016)Ivan Rossi
 

Ähnlich wie Riak Operations (20)

Oracle Release 12 E-Business Suite Patching Best Practices
Oracle Release 12 E-Business Suite Patching Best PracticesOracle Release 12 E-Business Suite Patching Best Practices
Oracle Release 12 E-Business Suite Patching Best Practices
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Using Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed ApplicationsUsing Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed Applications
 
Percona xtrabackup - MySQL Meetup @ Mumbai
Percona xtrabackup - MySQL Meetup @ MumbaiPercona xtrabackup - MySQL Meetup @ Mumbai
Percona xtrabackup - MySQL Meetup @ Mumbai
 
about Debian "squeeze" @201002 OSC Tokyospring
about Debian "squeeze" @201002 OSC Tokyospringabout Debian "squeeze" @201002 OSC Tokyospring
about Debian "squeeze" @201002 OSC Tokyospring
 
Subversion Day Berlin 2011 Configuration Management With Subversion And Rpm
Subversion Day Berlin 2011 Configuration Management With Subversion And RpmSubversion Day Berlin 2011 Configuration Management With Subversion And Rpm
Subversion Day Berlin 2011 Configuration Management With Subversion And Rpm
 
OpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, tooOpenNebula, the foreman and CentOS play nice, too
OpenNebula, the foreman and CentOS play nice, too
 
Ansible on AWS
Ansible on AWSAnsible on AWS
Ansible on AWS
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
 
Filesystem Performance from a Database Perspective
Filesystem Performance from a Database PerspectiveFilesystem Performance from a Database Perspective
Filesystem Performance from a Database Perspective
 
Ungooglable
UngooglableUngooglable
Ungooglable
 
[ElasticStack]What happens when you visualize servers exposed to the world?
[ElasticStack]What happens when you visualize servers exposed to the world? [ElasticStack]What happens when you visualize servers exposed to the world?
[ElasticStack]What happens when you visualize servers exposed to the world?
 
1. Scaling PHP/MySQL...Presentation from Flickr
	
1.	
Scaling PHP/MySQL...Presentation from Flickr	
1.	
Scaling PHP/MySQL...Presentation from Flickr
1. Scaling PHP/MySQL...Presentation from Flickr
 
HBaseConAsia2019 Keynote
HBaseConAsia2019 KeynoteHBaseConAsia2019 Keynote
HBaseConAsia2019 Keynote
 
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...
Dynamic tracing of MariaDB on Linux - problems and solutions (MariaDB Server ...
 
Rails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & ToolsRails Application Optimization Techniques & Tools
Rails Application Optimization Techniques & Tools
 
Migrating to a bazel based CI system: 6 learnings
Migrating to a bazel based CI system: 6 learnings Migrating to a bazel based CI system: 6 learnings
Migrating to a bazel based CI system: 6 learnings
 
CPANTS: Kwalitative website and its tools
CPANTS: Kwalitative website and its toolsCPANTS: Kwalitative website and its tools
CPANTS: Kwalitative website and its tools
 
Perl
PerlPerl
Perl
 
Introduction to Ansible (Pycon7 2016)
Introduction to Ansible (Pycon7 2016)Introduction to Ansible (Pycon7 2016)
Introduction to Ansible (Pycon7 2016)
 

Kürzlich hochgeladen

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Riak Operations

  • 1. Riak Operations Grant Schofield Developer Advocate Basho Technologies, Inc. basho Friday, April 15, 2011
  • 2. Installing Riak ‣ http://downloads.basho.com ‣ Packages (Debs, RPMs, Pkgs) ‣ Source Install (Requires Erlang) ‣ “Dev” Installs basho Friday, April 15, 2011
  • 3. Where is Riak ‣ Source and Solaris ‣ /etc/riak ‣ /usr/sbin/riak|riak-admin ‣ /usr/lib|lib64/riak << Meat ‣ /var/log/riak << Log Dir ‣ /var/lib/riak << Data Dir ‣ /tmp/riak << Sockets basho Friday, April 15, 2011
  • 4. /etc/riak ‣ app.config ‣ Riak Configuration ‣ riak_core,riak_kv, bitcask ‣ vm.args ‣ Erlang VM Settings ‣ -name riak@<ip> basho Friday, April 15, 2011
  • 5. /usr/sbin/riak ‣ Wrapped by /etc/init.d/riak ‣ Runs Riak User (sudo) ‣ start | stop ‣ restart|reboot ‣ ping ‣ console | attach basho Friday, April 15, 2011
  • 6. /usr/sbin/riak-admin ‣ join | leave | remove | reip ‣ backup | restore (cluster or node) ‣ test | status | js_reload ‣ wait-for-service | ringready | transfers ‣ cluster_info basho Friday, April 15, 2011
  • 7. riak-admin status vnode gets/puts in read-repairs in the the last 60 seconds gets/puts total vnode last 60 seconds node gets since start in the total node gets last 60 seconds since start times get_fsm node puts in inthe microseconds total node puts last 60 seconds since start put_fsm times total read-repairs in microseconds since start basho Friday, April 15, 2011
  • 10. cluster_info cont... Total Memory Use <0.108.0>?? basho Friday, April 15, 2011
  • 11. <0.108.0> snmp process basho Friday, April 15, 2011
  • 12. mailboxes (message queue) basho Friday, April 15, 2011
  • 14. Logging ‣ Not Typical (Built in Rotation) ‣ /var/log/riak/erlang.log.X ‣ Console Output ‣ /var/log/riak/sasl-error.log ‣ Errors and Crash Reports ‣ /var/log/riak/sasl << Report Browser basho Friday, April 15, 2011
  • 18. Riak Performance ‣ MANY Variables ‣ Backend Choice (Innostore vs Bitcask) ‣ Hardware vs Virtualized ‣ Access Patterns ‣ Correct System Configuration ‣ Knowing your Environment basho Friday, April 15, 2011
  • 19. Bitcask Tuning ‣ KeyDir is in Memory ‣ Fileystem Cache (Access Profile Considerations) ‣ Merge Trigger Settings ‣ Scheduling Bitcask Merges ‣ Key Expiration basho Friday, April 15, 2011
  • 20. Innostore Tuning ‣ Similar to MySQL + InnoDB ‣ buffer pool size ‣ o_direct ‣ log_files_in_groups ‣ Separate Spindles for Log and Data basho Friday, April 15, 2011
  • 21. Tools You Should Know ‣ riak-admin status ‣ top ‣ iostat -x 2 ‣ sar ‣ basho_bench basho Friday, April 15, 2011
  • 24. Tips for Performance ‣ Start with a “DB” Like Machine Profile ‣ noatime mounts ‣ Ring Size ‣ Horizontal vs Vertical Scaling ‣ Basho Bench Testing ‣ Limit List Keys and Full Bucket MapReduce ‣ Graph Everything basho Friday, April 15, 2011
  • 25. Metrics & Monitoring ‣ Integrates with Everything!! ‣ SNMP (Enterprise Plug) ‣ JMX (Enterprise Plug) ‣ Wrapping riak-admin status ‣ /ping ‣ /stats ‣ Read/Write a Key basho Friday, April 15, 2011
  • 26. Load Balancing ‣ HTTP - HAProxy, nginx, etc... ‣ Protocol Buffers - Any TCP Load Balancer ‣ Least Connected basho Friday, April 15, 2011
  • 27. Backups ‣ Different Depending on Backend ‣ Innostore ‣ riak-admin backup (node | cluster) ‣ Bitcask ‣ rsync ‣ snapshots ‣ cp ? ‣ Enterprise Replication basho Friday, April 15, 2011
  • 28. A node has horked! Now what? ‣ That Depends..... ‣ How did the node die? ‣ Do you still have the data? ‣ Start the Node ‣ No data? ‣ Restore or Replace Node basho Friday, April 15, 2011
  • 29. Configuration Management ‣ Riak is Unix ‣ Chef, Puppet, Etc. ‣ Chef Cookbook is Advanced ‣ “Auto” Joining Nodes to a Cluster (ringready) ‣ Node vs IP Naming (vm.args -name) basho Friday, April 15, 2011
  • 30. Security ‣ SSL ‣ No Built In Authentication ‣ HTTP Auth Via Proxy ‣ Riak on the Internet? ‣ Follow Best Practices basho Friday, April 15, 2011
  • 31. System Recommendations ‣ Multi-core 64-bit CPUs ‣ The More RAM the Better ‣ Fast Disk (Raid0? SSD? SAS?) ‣ SAN vs Local Disk ‣ Virtualization Caveats basho Friday, April 15, 2011
  • 32. EC2 and EBS ‣ Follow DB Best Practices ‣ To EBS or Not to EBS? ‣ Raid0 is Faster, but an OPS Headache ‣ Speed vs Fault Tolerance (Availability Zones) ‣ Specific Tweaks for EC2 (net_ticktime) ‣ There are MANY successful deployments. basho Friday, April 15, 2011
  • 33. Obligatory Plug For more information about support, professional services, or an Enterprise licenses please contact info@basho.com or visit http://www.basho.com/contact.php basho Friday, April 15, 2011