Download presentation
Presentation is loading. Please wait.
Published byLambert Emery Nelson Modified over 9 years ago
1
Cluster-Based Scalable Network Service Author: Armando Steven D.Gribble Steven D.Gribble Yatin Chawathe Yatin Chawathe Eric A. Brewer Eric A. Brewer Paul Gauthier Paul Gauthier Presenter: Kang Cao
2
Over View IntroductionIntroduction Cluster-Based Scalable Service ArchitectureCluster-Based Scalable Service Architecture Service ImplementationService Implementation MeasurementsMeasurements DiscussDiscuss conclusionconclusion
3
Introduction GoalGoal Advantages of ClustersAdvantages of Clusters Challenges of Cluster computingChallenges of Cluster computing BASE SemanticsBASE Semantics
4
Goal ScalabilityScalability –Keep same per-user cost as load increases. Availability:Availability: –Run 24 hour a day and 7 day a week Cost effectivenessCost effectiveness
5
Advantages ScalabilityScalability –Clusters are well suited to Internet Service workload –Incremental scalability High availabilityHigh availability Commodity building blocksCommodity building blocks –Cheap commodity PC –Get service quickly and cheap
6
challenges AdministrationAdministration Component VS. System replicationComponent VS. System replication Partial failuresPartial failures Share statesShare states
7
BASE Semantics Against ACID(atomicity, consistency,isolation,durability) StaleStale Soft stateSoft state ApproximateApproximate
8
Cluster-Based Scalable Service Architecture Layer ArchitectureLayer Architecture Separate network services from their implementationSeparate network services from their implementation Stateless workersStateless workers
9
Cluster-Based Scalable Service Architecture SNSSNS TACCTACC ServiceService
10
Scalable network service Incremental and absolute scalabilityIncremental and absolute scalability Worker load balancing and overflow managementWorker load balancing and overflow management Front-end availability, fault tolerance mechanismsFront-end availability, fault tolerance mechanisms System monitoring and loggingSystem monitoring and logging
11
SNS SNSManagerSNSManager InternalNetwork Front End MSMS MSMS MSMS Worker Driver WorkerWorker WorkerWorker... $ $ Internet
12
Load balance Centralized load balancingCentralized load balancing Easy to implementEasy to implement
13
How to handle Bursts Has a overflow poolHas a overflow pool Manager can spawn workers on overflow machines on the demandManager can spawn workers on overflow machines on the demand
14
Scalability Components replicatedComponents replicated Amount of additional resources required is a linear function of the increase in offered loadAmount of additional resources required is a linear function of the increase in offered load Partition the function between front end and workerPartition the function between front end and worker Keep worker as simple as possibleKeep worker as simple as possible
15
Fault Tolerance and Availability Fault Tolerance and Availability Process peer fault toleranceProcess peer fault tolerance Using soft statesUsing soft states Timeout as an additional fault- tolerance mechanismTimeout as an additional fault- tolerance mechanism
16
TACC TACC: Transformation, Aggregation, Caching, Customization API for composition of stateless data transformation and content aggregation modulesAPI for composition of stateless data transformation and content aggregation modules Uniform caching of original, post- aggregation and post-transformation dataUniform caching of original, post- aggregation and post-transformation data Transparent access to Customization databaseTransparent access to Customization database
17
TACC A programming model for internet Service TransformationTransformation AggregationAggregation CachingCaching CustomizationCustomization
18
Service Implementation Workers that present human interface to what TACC modules do, including device-specific presentationWorkers that present human interface to what TACC modules do, including device-specific presentation User interface to control the serviceUser interface to control the service Most service can be done at the service and TACC layersMost service can be done at the service and TACC layers
19
Example:TranSend Model pool switch workstationWorkstationworkstation Internet
20
TranSend Front EndsFront Ends Load balancing ManagerLoad balancing Manager User profile DatabaseUser profile Database Cache NodesCache Nodes Datatype-Specific DistillersDatatype-Specific Distillers Graphical MonitorGraphical Monitor
21
Load Balancing Manager Client-side JavaScript support balance load across multiple front endsClient-side JavaScript support balance load across multiple front ends Centralized manager for internal load balancingCentralized manager for internal load balancing
22
Load balancing components register to managercomponents register to manager Front end asks manager to give it a worker when it has taskFront end asks manager to give it a worker when it has task Manager locates a worker to Front endManager locates a worker to Front end Manager may create a new distillerManager may create a new distiller Workers report their load to managerWorkers report their load to manager
23
Load balancing Manager broadcast the information of load periodicallyManager broadcast the information of load periodically FrontEnds cache these informationFrontEnds cache these information FrontEnds use the cached information to dispatch requests to workersFrontEnds use the cached information to dispatch requests to workers
24
Fault Tolerance and crash Recovery Using BASE semantics simplifies crash recoveryUsing BASE semantics simplifies crash recovery Manager reports workers failures to the FrontEndManager reports workers failures to the FrontEnd Manager detects and restarts a crashed front endManager detects and restarts a crashed front end The front end detects and restarts a crashed managerThe front end detects and restarts a crashed manager
25
Performance Load balancing
26
Performance: Load balancing
27
Conclusions: Layer architecture for cluster- base scalable network serviceLayer architecture for cluster- base scalable network service The architecture is reusableThe architecture is reusable Cluster-based value-added network services will become an important Internet-service paradigmCluster-based value-added network services will become an important Internet-service paradigm
28
Performance: Scalability
29
question 1.Why are the cluster-based network service well suited to internet service
30
answer The requirements are highly parallel( many indepent simultaneous users)The requirements are highly parallel( many indepent simultaneous users) The grain size typically corresponds to at most a few CPU seconds on a commodity PCThe grain size typically corresponds to at most a few CPU seconds on a commodity PC
31
Question 2 Why does the cluster-base network service use BASE semantics?Why does the cluster-base network service use BASE semantics?
32
Answer: BASE semantics allow us to handle partial failure in clusters with less complexity and cost.BASE semantics allow us to handle partial failure in clusters with less complexity and cost.
33
Question 3 When the overflow machines are being recruited unusually often, what should be done at this time?When the overflow machines are being recruited unusually often, what should be done at this time?
34
Answer: It is time to add new machines.It is time to add new machines.
35
Question 4 Does the Frontend crash not lost any information? If does, what kind information will be lost?Does the Frontend crash not lost any information? If does, what kind information will be lost?
36
Answer: User requests will be lost and user need to handle timeout and resend request.User requests will be lost and user need to handle timeout and resend request.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.