Your SlideShare is downloading. ×
第三回月次セミナー(公開版)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

第三回月次セミナー(公開版)

1,528

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,528
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. HandlerSocket
    • 2. HandlerSocket
    • 3. MySQL Plugin
    • 4. Handler
    • 5. Handler
    • 6. Handler
    • 7. HandlerSocket
    • 8. HandlerSocket plugin Client for Java
    • 9. HandlerSocket plugin Client for Java http://code.google.com/p/handlersocketforjava/
    • 10. HandlerSocket plugin Client for Javahttps://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/blob/master/README
    • 11. HandlerSocket
    • 12. HandlerSocket HandlerSocket hs = new HandlerSocket(); try{ (Java) System.out.println("open connection."); hs.open(host, port); System.out.println("open index."); hs.command().openIndex(id, db, table, index, fieldList); System.out.println("operations."); for(int i = 0 ; i <= size ; i++){ if(i != 0 && i % loop == 0){ System.out.println("tcommand size : " + hs.getCommandSize() + "byte"); List<HandlerSocketResult> results = hs.execute(); System.out.println("tresult size : " + hs.getCurrentResponseSize() + "byte"); if(verbose){ System.out.println("result."); for(HandlerSocketResult result : results){ System.out.println("t" + result.toString()); } } if(i == size) break; } String[] keys = new String[]{String.valueOf(i)}; hs.command().find(id, keys); } }finally{ System.out.println("close connection."); hs.close(); }
    • 13. HandlerSocket
    • 14. Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity serverhttp://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html
    • 15. Test Case1:TableA JDBC(SQL) HandlerSocket 400 300average time(μs) 200 100 0 0 2500 5000 7500 10000 query per second
    • 16. Test Case2:TableB JDBC(SQL) HandlerSocket 70 52.5average time(μs) 35 17.5 0 0 10000 20000 30000 40000 query per second
    • 17. Test Case3:TableB JDBC(SQL) HandlerSocket 1400 1050average time(μs) 700 350 0 0 425 850 1275 1700 query per second
    • 18. monitoring result(vmstat-disk io)
    • 19. monitoring result(vmstat-context switch)
    • 20. monitoring result (vmstat-CPU)

    ×