SlideShare una empresa de Scribd logo
1 de 41
Descargar para leer sin conexión
Motivation
                                       Implementation
                                            Evaluation
                                          Conclusions




      .
                                                                                                                    .
      .                          Lock Service with Paxos
      ..                                                                                                        .




                                                                                                                    .
                           Presenter: Emmanouil Dimogerontakis
                              Teammate: Muhammet Orazov
                                Supervisor: Johan Montelius
                                                               C
                                                CC       BY:



                                                 EMDC KTH


                                          December 5, 2012



                                                                        .      .       .          .         .           .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      1/19     CC       BY:
Motivation
                                       Implementation
                                            Evaluation
                                          Conclusions




        .
     . . Motivation
       1


        .
     . . Implementation
       2
           Architecture
           Fault Tolerance & Optimizations

        .
     . . Evaluation
       3
           Central Lock
           Experiments

        .
     . . Conclusions
       4




                                                                        .      .       .          .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      2/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. Paxos




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      3/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. Paxos




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      3/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. From Paxos to a Lock Service


       Not Trivial




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      4/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. From Paxos to a Lock Service


       Not Trivial

              Paxos Replicated State Machine




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      4/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. From Paxos to a Lock Service


       Not Trivial

              Paxos Replicated State Machine
              Slot queue → Sequence of lock holders




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      4/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. From Paxos to a Lock Service


       Not Trivial

              Paxos Replicated State Machine
              Slot queue → Sequence of lock holders
              Paxos round number = Slot number




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      4/19     CC       BY:
Motivation
                                        Implementation
                                             Evaluation
                                           Conclusions



. From Paxos to a Lock Service


       Not Trivial

              Paxos Replicated State Machine
              Slot queue → Sequence of lock holders
              Paxos round number = Slot number
              Paxos decides who gets each slot




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      4/19     CC       BY:
Motivation
                                       Implementation      Architecture
                                            Evaluation     Fault Tolerance & Optimizations
                                          Conclusions




        .
     . . Motivation
       1


        .
     . . Implementation
       2
           Architecture
           Fault Tolerance & Optimizations

        .
     . . Evaluation
       3
           Central Lock
           Experiments

        .
     . . Conclusions
       4




                                                                         .      .       .         .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      5/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Abstract View




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      6/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Detailed View




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      7/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Use Case




                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      8/19     CC       BY:
Motivation
                                        Implementation      Architecture
                                             Evaluation     Fault Tolerance & Optimizations
                                           Conclusions



. Process Fault Tolerance




                                              Supervisor Tree


       Process restarts aware that it has crashed

                                                                          .      .       .         .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      9/19     CC       BY:
Motivation
                                        Implementation     Architecture
                                             Evaluation    Fault Tolerance & Optimizations
                                           Conclusions



. Paxos Fault Tolerance




              Acceptor persists asynchronously its state




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      10/19    CC       BY:
Motivation
                                        Implementation     Architecture
                                             Evaluation    Fault Tolerance & Optimizations
                                           Conclusions



. Paxos Fault Tolerance




              Acceptor persists asynchronously its state
              Learner persists asynchronously the slot queue




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      10/19    CC       BY:
Motivation
                                        Implementation     Architecture
                                             Evaluation    Fault Tolerance & Optimizations
                                           Conclusions



. Paxos Fault Tolerance




              Acceptor persists asynchronously its state
              Learner persists asynchronously the slot queue
              Assignor persists asynchronously its state




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      10/19    CC       BY:
Motivation
                                        Implementation     Architecture
                                             Evaluation    Fault Tolerance & Optimizations
                                           Conclusions



. Optimizations


       @COMPLETED:
           Receiver handles the huge amount of requests
           Shared Queue between Receiver and Proposer
           Learner and Acceptor spawn separate writing process




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      11/19    CC       BY:
Motivation
                                        Implementation     Architecture
                                             Evaluation    Fault Tolerance  Optimizations
                                           Conclusions



. Optimizations


       @COMPLETED:
           Receiver handles the huge amount of requests
           Shared Queue between Receiver and Proposer
           Learner and Acceptor spawn separate writing process
       @TODO:
           Propose lock requests in batches
           Leader
           Garbage Collection



                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      11/19    CC       BY:
Motivation
                                       Implementation     Central Lock
                                            Evaluation    Experiments
                                          Conclusions




        .
     . . Motivation
       1


        .
     . . Implementation
       2
           Architecture
           Fault Tolerance  Optimizations

        .
     . . Evaluation
       3
           Central Lock
           Experiments

        .
     . . Conclusions
       4




                                                                         .     .      .           .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      12/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Throughput




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      13/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Latency




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      14/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Cost of Availability
       # of Paxos Nodes               VS Latency and/or Throughput




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      15/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Cost of Availability
       # of Paxos Nodes               VS Latency and/or Throughput
       Will look like:




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      15/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Cost of Fault Tolerance
       Latency of Node Recovery VS Latency and/or Throughput




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      16/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. Cost of Fault Tolerance
       Latency of Node Recovery VS Latency and/or Throughput
       Will look like:




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      16/19    CC       BY:
Motivation
                                        Implementation     Central Lock
                                             Evaluation    Experiments
                                           Conclusions



. More




              Proposer Timeouts VS Latency and/or Throughput
              Paxos +/-Persistence VS Latency and/or Throughput




                                                                          .     .      .           .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      17/19    CC       BY:
Motivation
                                       Implementation
                                            Evaluation
                                          Conclusions




        .
     . . Motivation
       1


        .
     . . Implementation
       2
           Architecture
           Fault Tolerance  Optimizations

        .
     . . Evaluation
       3
           Central Lock
           Experiments

        .
     . . Conclusions
       4




                                                                        .      .      .           .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      18/19    CC       BY:
Motivation
                                       Implementation
                                            Evaluation
                                          Conclusions




             Find golden ratio: Performance vs Availability
             Find golden ratio: Performance vs Fault Tolerance
             Their combination?




                                                                        .      .      .           .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      19/19    CC       BY:
Motivation
                                       Implementation
                                            Evaluation
                                          Conclusions




             Find golden ratio: Performance vs Availability
             Find golden ratio: Performance vs Fault Tolerance
             Their combination?

                                         Questions ?




                                                                        .      .      .           .         .   .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      19/19    CC       BY:
Part I
      .
                                                                                                                    .
                                               Appendix
      .
      ..                                                                                                        .




                                                                                                                    .
                                                                        .      .      .           .         .           .
                                                                                                            C
Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                        Lock Supervisor: Paxos      20/19    CC       BY:
. Benchmarking Tool




              Basho bench
              Ability to write custom clients
              Can simulate network dispatcher process




                                                                         .      .       .          .         .   .
                                                                                                             C
 Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius
                                                         Lock Supervisor: Paxos      1/1      CC       BY:

Más contenido relacionado

Más de Save Manos

Software Defined Networking for Community Network Testbeds
Software Defined Networking for Community Network TestbedsSoftware Defined Networking for Community Network Testbeds
Software Defined Networking for Community Network TestbedsSave Manos
 
FOSS Licenses: A first attempt
FOSS Licenses: A first attemptFOSS Licenses: A first attempt
FOSS Licenses: A first attemptSave Manos
 
Ciel universal distributed execution engine
Ciel universal distributed execution engine Ciel universal distributed execution engine
Ciel universal distributed execution engine Save Manos
 
A boring presentation about social mobile communication patterns and opportun...
A boring presentation about social mobile communication patterns and opportun...A boring presentation about social mobile communication patterns and opportun...
A boring presentation about social mobile communication patterns and opportun...Save Manos
 
Man In The Browser
Man In The BrowserMan In The Browser
Man In The BrowserSave Manos
 
P2P-Tuple: Towards a Robust Volunteer Computing Platform
P2P-Tuple: Towards a Robust Volunteer Computing Platform P2P-Tuple: Towards a Robust Volunteer Computing Platform
P2P-Tuple: Towards a Robust Volunteer Computing Platform Save Manos
 
A survey on modifications for unstructured P2P in WMNs .
A survey on modifications for unstructured P2P in WMNs . A survey on modifications for unstructured P2P in WMNs .
A survey on modifications for unstructured P2P in WMNs . Save Manos
 
Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services Save Manos
 
Network as a Service
Network as  a ServiceNetwork as  a Service
Network as a ServiceSave Manos
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web ServicesSave Manos
 
Distributed systems
Distributed systemsDistributed systems
Distributed systemsSave Manos
 

Más de Save Manos (14)

Software Defined Networking for Community Network Testbeds
Software Defined Networking for Community Network TestbedsSoftware Defined Networking for Community Network Testbeds
Software Defined Networking for Community Network Testbeds
 
NaaS
NaaSNaaS
NaaS
 
FOSS Licenses: A first attempt
FOSS Licenses: A first attemptFOSS Licenses: A first attempt
FOSS Licenses: A first attempt
 
Ciel universal distributed execution engine
Ciel universal distributed execution engine Ciel universal distributed execution engine
Ciel universal distributed execution engine
 
A boring presentation about social mobile communication patterns and opportun...
A boring presentation about social mobile communication patterns and opportun...A boring presentation about social mobile communication patterns and opportun...
A boring presentation about social mobile communication patterns and opportun...
 
Man In The Browser
Man In The BrowserMan In The Browser
Man In The Browser
 
Apache Mahout
Apache MahoutApache Mahout
Apache Mahout
 
P2P-Tuple: Towards a Robust Volunteer Computing Platform
P2P-Tuple: Towards a Robust Volunteer Computing Platform P2P-Tuple: Towards a Robust Volunteer Computing Platform
P2P-Tuple: Towards a Robust Volunteer Computing Platform
 
A survey on modifications for unstructured P2P in WMNs .
A survey on modifications for unstructured P2P in WMNs . A survey on modifications for unstructured P2P in WMNs .
A survey on modifications for unstructured P2P in WMNs .
 
Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services
 
Network as a Service
Network as  a ServiceNetwork as  a Service
Network as a Service
 
Openflow
OpenflowOpenflow
Openflow
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
Distributed systems
Distributed systemsDistributed systems
Distributed systems
 

Último

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 

Lock Service with Paxos in Erlang

  • 1. Motivation Implementation Evaluation Conclusions . . . Lock Service with Paxos .. . . Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Supervisor: Johan Montelius C CC BY: EMDC KTH December 5, 2012 . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 1/19 CC BY:
  • 2. Motivation Implementation Evaluation Conclusions . . . Motivation 1 . . . Implementation 2 Architecture Fault Tolerance & Optimizations . . . Evaluation 3 Central Lock Experiments . . . Conclusions 4 . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 2/19 CC BY:
  • 3. Motivation Implementation Evaluation Conclusions . Paxos . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 3/19 CC BY:
  • 4. Motivation Implementation Evaluation Conclusions . Paxos . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 3/19 CC BY:
  • 5. Motivation Implementation Evaluation Conclusions . From Paxos to a Lock Service Not Trivial . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 4/19 CC BY:
  • 6. Motivation Implementation Evaluation Conclusions . From Paxos to a Lock Service Not Trivial Paxos Replicated State Machine . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 4/19 CC BY:
  • 7. Motivation Implementation Evaluation Conclusions . From Paxos to a Lock Service Not Trivial Paxos Replicated State Machine Slot queue → Sequence of lock holders . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 4/19 CC BY:
  • 8. Motivation Implementation Evaluation Conclusions . From Paxos to a Lock Service Not Trivial Paxos Replicated State Machine Slot queue → Sequence of lock holders Paxos round number = Slot number . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 4/19 CC BY:
  • 9. Motivation Implementation Evaluation Conclusions . From Paxos to a Lock Service Not Trivial Paxos Replicated State Machine Slot queue → Sequence of lock holders Paxos round number = Slot number Paxos decides who gets each slot . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 4/19 CC BY:
  • 10. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . . . Motivation 1 . . . Implementation 2 Architecture Fault Tolerance & Optimizations . . . Evaluation 3 Central Lock Experiments . . . Conclusions 4 . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 5/19 CC BY:
  • 11. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Abstract View . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 6/19 CC BY:
  • 12. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Detailed View . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 7/19 CC BY:
  • 13. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 14. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 15. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 16. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 17. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 18. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 19. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 20. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 21. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 22. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Use Case . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 8/19 CC BY:
  • 23. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Process Fault Tolerance Supervisor Tree Process restarts aware that it has crashed . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 9/19 CC BY:
  • 24. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Paxos Fault Tolerance Acceptor persists asynchronously its state . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 10/19 CC BY:
  • 25. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Paxos Fault Tolerance Acceptor persists asynchronously its state Learner persists asynchronously the slot queue . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 10/19 CC BY:
  • 26. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Paxos Fault Tolerance Acceptor persists asynchronously its state Learner persists asynchronously the slot queue Assignor persists asynchronously its state . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 10/19 CC BY:
  • 27. Motivation Implementation Architecture Evaluation Fault Tolerance & Optimizations Conclusions . Optimizations @COMPLETED: Receiver handles the huge amount of requests Shared Queue between Receiver and Proposer Learner and Acceptor spawn separate writing process . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 11/19 CC BY:
  • 28. Motivation Implementation Architecture Evaluation Fault Tolerance Optimizations Conclusions . Optimizations @COMPLETED: Receiver handles the huge amount of requests Shared Queue between Receiver and Proposer Learner and Acceptor spawn separate writing process @TODO: Propose lock requests in batches Leader Garbage Collection . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 11/19 CC BY:
  • 29. Motivation Implementation Central Lock Evaluation Experiments Conclusions . . . Motivation 1 . . . Implementation 2 Architecture Fault Tolerance Optimizations . . . Evaluation 3 Central Lock Experiments . . . Conclusions 4 . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 12/19 CC BY:
  • 30. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Throughput . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 13/19 CC BY:
  • 31. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Latency . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 14/19 CC BY:
  • 32. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Cost of Availability # of Paxos Nodes VS Latency and/or Throughput . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 15/19 CC BY:
  • 33. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Cost of Availability # of Paxos Nodes VS Latency and/or Throughput Will look like: . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 15/19 CC BY:
  • 34. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Cost of Fault Tolerance Latency of Node Recovery VS Latency and/or Throughput . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 16/19 CC BY:
  • 35. Motivation Implementation Central Lock Evaluation Experiments Conclusions . Cost of Fault Tolerance Latency of Node Recovery VS Latency and/or Throughput Will look like: . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 16/19 CC BY:
  • 36. Motivation Implementation Central Lock Evaluation Experiments Conclusions . More Proposer Timeouts VS Latency and/or Throughput Paxos +/-Persistence VS Latency and/or Throughput . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 17/19 CC BY:
  • 37. Motivation Implementation Evaluation Conclusions . . . Motivation 1 . . . Implementation 2 Architecture Fault Tolerance Optimizations . . . Evaluation 3 Central Lock Experiments . . . Conclusions 4 . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 18/19 CC BY:
  • 38. Motivation Implementation Evaluation Conclusions Find golden ratio: Performance vs Availability Find golden ratio: Performance vs Fault Tolerance Their combination? . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 19/19 CC BY:
  • 39. Motivation Implementation Evaluation Conclusions Find golden ratio: Performance vs Availability Find golden ratio: Performance vs Fault Tolerance Their combination? Questions ? . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 19/19 CC BY:
  • 40. Part I . . Appendix . .. . . . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 20/19 CC BY:
  • 41. . Benchmarking Tool Basho bench Ability to write custom clients Can simulate network dispatcher process . . . . . . C Presenter: Emmanouil Dimogerontakis Teammate: Muhammet Orazov Service with Johan Montelius Lock Supervisor: Paxos 1/1 CC BY: