2. Jordan Zimmerman
@randgalt
jzimmerman@netflix.com
NetflixOSS projects I work on
Jordan Zimmerman
Netflix Platform Team
jzimmerman@netflix.com
@randgalt
3. Correct ZooKeeper use is hard!
● Curator is a set of Java libraries that make using ZooKeeper much easier
and enforce best practices.
● Curator is focused on the recipes: locks, leaders, etc. Most people
interested in ZooKeeper don't need to be concerned with the details of
connection management, etc. What they want is a simple way to use the
recipes.
● Connection management, retries, recipes, best practices.
● Recipes!
Leader Latch, Leader Election, Shared Reentrant Lock, Shared Lock, Shared Reentrant Read
Write Lock, Shared Semaphore, Multi Shared Lock, Distributed Queue, Distributed Id Queue,
Distributed Priority Queue, Distributed Delay Queue, Simple Distributed Queue, Barrier, Double
Barrier, Shared counter, Distributed Atomic Long, Path Cache, Node Cache
4. ZooKeeper Ops is very hard!
● Instance Monitoring
● Log Cleanup
● Backup/Restore
● Cluster-wide Configuration
● Rolling Ensemble Changes
● Automatic Instance Management
● Visualizer
● ZooKeeper Data Mutation
● Curator Integration
● Rich REST API
5. A library of extensions and utilities that enhance Google Guice to provide:
● Classpath scanning and automatic binding
● Lifecycle management
● Configuration to field mapping
● Field validation
● Parallelized object warmup
● Lazy singleton
● Fine grained, more concurrent singleton
● Generic binding annotations
6. BLITZ4j
● At Netflix
● Billions of log lines per day
● BI reporting, Monitoring, Debugging
● Log4j for several years
● What we faced?
● Traffic increased – per instance logging increased
● Contentions in logging
● Impact in application response time
● Deadlocks during reconfiguration
● What is wrong with Log4j?
● Strict locking model
● Synchronization semantics everywhere
● Impacting application response for logging a few lines?
● What is Blitz4j?
● Seamlessly replace all contention points
● Decouple logging and application
● Asynchronous appender – optimized, configurable
● Dynamic configurability
● How can your application benefit?
● Does your application use log4j and logs heavily?
● Immediate performance boost
● Include blitz4j in classpath and couple of lines of configuration
7. EUREKA
● REST service
● Primarily useful in the AWS cloud
● Find other middle-tier services in the cloud
● Service -farm of instances providing functionality
● identified by well known name
● Why discover other services?
● Services find other services to interact - midde tier
● In AWS cloud, this communication can be tricky
● Instances come and go, ASG scales up/down
● Interacting services should be aware of this
● ELB can track this – but exposes internet traffic
● DNS can discover services – but cannot maintain automatically
● Eureka tracks this information and relays to all communicating services
● What does Eureka provide?
● Finding instances for middle-tier communication and loadbalancing
● Other management activities - take instances in/out of live traffic
● Share application-specific metadata between services
● Built-in Resilience to network partitions, zone failures,eureka peer outages
VMore about Eureka and Blitz4j - Visit us at the booth
8. Ribbon
Inter-process communication library with software load balancers and
client
● Cornerstone of Netflix Internal Web Services (NIWS), a Service Oriented
Architecture
● Multiple built-in load balancing schemes
○ round robin, response time weighted, circuit breaker enabled
● Cloud ready
○ Integration with Eureka to provide dynamic server pools in AWS
○ AWS specific features - zone affinity, zone avoidance, connection
priming
● Highly configurable JSR 311 based REST Client
● Coming soon
○ Annotation based provider for easy serialization/deserialization and
cache support
○ SLA measurement for clients
○ Response cache for REST client
○ Asynchronous/batch operation for REST client
9. Archaius
Archaius is a dynamic configuration library
● Enable configuration change at runtime without restarting
● Framework to poll configuration source or listen to external property
related events
● Supports configuration sources from generic URLs, JDBC, Amazon
DynamoDB, ZooKeeper and jCloud
● Central place to organize properties into "buckets" by their nature
and priorities
● Coming soon
○ Service that manage properties with multiple dimensions
○ Property Management UI
○ Property validation and change notification
10. Astyanax /əˈstaɪ.ənæks/
● Cassandra Java Client Library - Higher level fluent API
● Connection Pool
○ Bag, Round Robin, Token Aware, Rack aware
○ Connection Priming
○ Failover + Retry
○ Latency optimization
● Optimized for running in the cloud
○ Node discovery
○ Monitoring
○ Metrics
● Recipes - Common Cassandra Data Models
○ Entity Mapping
○ Message Queue (w/ Quartz like scheduling)
○ All rows reader with checkpoints
○ Distributed lock
○ Large object store
11. Priam - Jason Brown (@jasobrown)
- Coprocess for running cassandra in ec2
- backup & recovery
- configuration
- token management (*)
12. Cassandra virtual nodes
- new feature in c* 1.2
- multiple, non-contiguous shards per instance
- simplifies operations for growing / shrinking
c * cluster