7. Traffic sensors to monitor interstate
conditions
• 16,000 sensors
• Measure at one minute intervals
• Speed
• Travel time
• Weather, pavement, and traffic conditions
• Support desktop, mobile, and car navigation
systems
24. db.linksAvg.update(
{"_id" : linkId},
{ "$set" : {"lUpdate" : date},
"$push" : {
"times" : { "$each" : [ time ], "$slice" : -10 },
"speeds" : {"$each" : [ speed ], "$slice" : -10}
}
})
Maintaining the current conditions
Each update pops the last element off the
array and pushes the new value
51. Processing Large Data Sets
• Need to break data into smaller pieces
• Process data across multiple nodes
Hadoop Hadoop Hadoop Hadoop
Hadoop Hadoop Hadoop HadoopHadoop
Hadoop
52. Benefits of the Hadoop Connector
• Increased parallelism
• Access to analytics libraries
• Separation of concerns
• Integrates with existing tool chains
53. MongoDB Hadoop Connector
• Multi-source analytics
• Interactive & Batch
• Data lake
• Online, Real-time
• High concurrency & HA
• Live analytics
Operational
Post
Processingand
MongoDB
Connector for
Hadoop
55. Sign up for our “Path to Proof” Program
and get expert advice on implementation,
architecture, and configuration.
www.mongodb.com/lp/contact/path-proof-program
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Compound unique index on linkId & Interval
update field used to identify new documents for aggregation
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Priority
Floating point number between 0..1000
Highest member that is up to date wins
Up to date == within 10 seconds of primary
If a higher priority member catches up, it will force election and win
Slave Delay
Lags behind master by configurable time delay
Automatically hidden from clients
Protects against operator errors
Fat fingering
Application corrupts data
Makes MongoDB a Hadoop-enabled file system
Read and write to live data, in-place
Copy data between Hadoop and MongoDB
Uses MongoDB indexes to filter data
Full support for data processing
Hive
MapReduce
Pig
Streaming