More Related Content
Similar to About Haystack (9)
More from Tomohiro MITSUMUNE (7)
About Haystack
- 2. Agenda
• about Facebook
• Old Photo Store system
• Haystack Store system
2009 12 2
- 3. Facebook
• SNS( : 250,000,000)
• 1
2009 12 2
- 4. Photo App in Facebook
• 150
• 4
• 600 1.5PB
•1 2 2 25TB
• 550,000
2009 12 2
- 14. Storage
• 2U
• 2 x quad-core CPUs
• 16GB - 32GB
• RAID (256MB
- 512MB NVRAM cache )
• 12 + 1 TB SATA HDD
2009 12 2
- 15. Storage
• 1 10TB
• RAID-6
•
• NVRAM write-back
2009 12 2
- 18. Filesystem
• 10TB 1
• inode
• 2
•
•
2009 12 2
• Haystack XFS
- 25. Needles
• <Needle Offset, Key, Alternate Key,
Cookie>
• Offset haystack store
• Key OK
2009 12 2
- 27. Index
•
•
• haystack store file
2009 12 2
- 29. Haystack Write
Operation
•
flush
• <Key,
Alternate Key, Cookie>
• Needle
2009 12 2
- 30. Haystack Read
Operation
• Needle offset, Key, Alternate Key, Cookie,
Data size
• Key Alaternate Key Cookie
2009 12 2
- 33. Photo Store
• HTTP
•
Haystack Store Object /
2009 12 2
- 35. Photo Store
• 64bit ID
4
• Cookie 64bit
• (large, medium, small,
thumbnail) Alternate
2009 12 2
- 38. Photo Store Read
Operation
• haystack id, photo key, , cookie
• photo key
Needle
2009 12 2
- 42. HTTP Server
• libevent evhttp
• 1 1
• I/O bound
2009 12 2
- 45. References
• http://www.facebook.com/note.php?
note_id=76191543919
• http://www.niallkennedy.com/blog/2009/04/
facebook-haystack.html
• http://perspectives.mvdirona.com/
2008/06/30/
FacebookNeedleInAHaystackEfficientStorag
eOfBillionsOfPhotos.aspx
2009 12 2