phpConf 2010 Классификация систем хранения

  • Published on
    14-Dec-2014

  • View
    1.744

  • Download
    10

Embed Size (px)

DESCRIPTION

phpConf - www.devconf.ru

Transcript

  • 1. akaSlach www.I-jet. ru http://slach.livejournal.com

2. web- ? ~ 2 .2DAU ,~40kk php req, avg req time0 .0 3;-)

  • (nginx, apache, node.js, tornado ..)
  • Application Layer( php,python,v8, jvm, asp.net ..)
  • ( filesystem ,memory, sql, nosql)
  • ( ) , Application Logic, , , .

3. 1) ,

  • RAM(),SSD, SAS, HDD ()
  • RAM+ (IMHO)
  • (TCPUDP )
  • . , ,

4. 2)

  • ( , , ACID )
  • , (, , , , , ..)
  • req/sec
  • ( )
  • BULK (BATCHING)
  • (DELAYED)

5. 3 )

  • ( , )
  • (api) , ( SQL ,XQuery ,REST, GETSET )
  • ( recordset ,nodeset) req/sec
  • ( ) ( ,buzy lock ..)

6. 4)

  • ( win32; ) (, ..)
  • ,
  • ( )
  • ( )backup estore
  • ( cacti, nagios, munin, zabbix ..)
  • failover

7. 5)

  • ?
  • C
  • ( OLTPOLAP) ?
  • ( , )
  • ( schema-lock, schema-less) () re-sharding

8. 9. ( 1) 10. ( 2) 11. ( 3) 12. 13. ( 1) 14. ( 2) 15. ( 3) 16. , ;-) MySQL InnoDB

  • , ( , )
  • read+write Replication Lag concurency , 99% Memcache pesistent storage, ;- )
  • sharding, , () schema change

17. , ;-) memcache

  • Dog-pile(lockadd )
  • value . LRU, slubsevicted
  • , () =)
  • , ( readwriteconnect timeout)
  • , , =)

18. , ;-) APC

  • , Dog-pile (lockapc_add )
  • Shared memory , ,
  • (, ) Mb
  • pesistent storage
  • IMHO read-only

19. , ;-) FileSystem, GlusterFS

  • SSD . random seek =)
  • csv, grep, sed, awk + pipes
  • GlusterFS , lsofiostat ..
  • IMHO UGC ( )+
  • IMHO () Application (+) +Frontend()

20. , ;-) Redis

  • Memcache
  • Single thread( ) Multi Cure CPU worker pool management ;)
  • ( 8 Gb ?)
  • ( SETEX + INCR)
  • maxmemory
  • KEYS (RTFMSETS ;)
  • ( )

21.

  • ;)
  • , CAP, MySQLCA,Redis, Memcache AP
  • ? , ;-)

Recommended

View more >