Whatisspider

1,284 views

Published on

jawsug大阪のLT資料です

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

No Downloads
Views
Total views
1,284
On SlideShare
0
From Embeds
0
Number of Embeds
513
Actions
Shares
0
Downloads
7
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Whatisspider

  1. 1. SPIDER ( )11 11 8
  2. 2. • (@memorycraft) • http://memocra.blogspot.com • http://twitter.com/#!/memorycraft • http://www.facebook.com/memocra • cloudpack • cloudpack blog11 11 8
  3. 3. cloudpack • Amazon EC2 • • • • • • 24 • • • •11 11 8
  4. 4. SPIDER ( )11 11 8
  5. 5. MYSQL • • • •11 11 8
  6. 6. SPIDER • Spider MySQL • MyISAM, InnoDB, , , , Spider • DB • • • XA11 11 8
  7. 7. 11 11 8
  8. 8. CREATE TABLE member ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(256) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf811 11 8
  9. 9. SPIDER CREATE TABLE member ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(256) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=SPIDER DEFAULT CHARSET=utf8 CONNECTION= table "member", user "user", password "pass" PARTITION BY KEY () ( PARTITION data_a1 COMMENT = host "111.111.0.2", port "3306" ENGINE = SPIDER, PARTITION data_a2 COMMENT = host "111.111.0.3", port "3306" ENGINE = SPIDER )11 11 8
  10. 10. SPIDER • Spider • •11 11 8
  11. 11. 11 11 8
  12. 12. SPIDER CREATE TABLE member ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(256) DEFAULT NULL, region_id int(11) NOT NULL, PRIMARY KEY (id,region_id) ) ENGINE=SPIDER DEFAULT CHARSET=utf8 CONNECTION= table "member", user "user", password "pass" PARTITION BY LIST (region_id) ( PARTITION ja_ja VALUES IN (1) COMMENT = host "111.111.0.1", port "3306" ENGINE = SPIDER, PARTITION ja_eu VALUES IN (2) COMMENT = host "111.111.0.2", port "3306" ENGINE = SPIDER )11 11 8
  13. 13. • • Spider • •11 11 8
  14. 14. • Spider (item_w) • Spider (item_r)11 11 8
  15. 15. 11 11 8
  16. 16. 11 11 8

×