ã¯ããã«
CockroachDBã¯ãããŒã¿ã®äžè²«æ§ãã¹ã±ãŒã©ããªãã£ãããã³åç¶å¯èœæ§ãæäŸãããªãŒãã³ãœãŒã¹ã®åæ£DBMSïŒSQLïŒã§ãã
CockroachDBã®ã»ããã¢ããã¯ç°¡åã§ããè€æ°ã®ãµãŒããŒïŒ ããŒã ïŒã«ã€ã³ã¹ããŒã«ããã³ã©ãã¬ãŒã·ã§ã³ïŒ ã¯ã©ã¹ã¿ãŒ ïŒã®ããã«åäžã®ãµãŒããŒã«çµåããŸã ã ãã¹ãŠã®ã¯ã©ã¹ã¿ããŒãã¯ã察称çã«ãåäœããåãããŒã¿ãžã®ã¢ã¯ã»ã¹ãæäŸããŸãã ããŒã¿çšã®ã¹ãã¬ãŒãžãå¢ããå¿ èŠãããå Žåã¯ã䜿çšããã¢ãŒããã¯ãã£ã§ãæ°ããããŒããäœæããŠã¯ã©ã¹ã¿ãŒã«æ¥ç¶ããã ãã§ååã§ãã
ãããã©ã®ããã«æ©èœãããã®è©³çŽ°ã¯ã CockroachDBã®å ¬åŒã®ã¹ã±ãŒã©ããªãã£ã¢ãã«ã®ããã¥ã¡ã³ãã§èª¬æãããŠããŸãã ïŒæ³šïŒããŒãã®1ã€ãä¿åããŒã¿éã®å¶éã«éãããšãCockroachDBã¯ã空ãé åããŸã å©çšå¯èœãªä»ã®ããŒãã«ããŒã¿ãåé åžããããšããŸããè€è£œä¿æ°ã¯è€è£œãŸãŒã³ã®èšå®ã«ãã£ãŠæ±ºãŸããŸããïŒ
ãã®ããã¥ã¢ã«ã®å·çæç¹ã§ã¯ã [ããã³ãã®ç¿»èš³-çŽ transã] CockroachDBã«ã¯ããŒã¿ã¹ããŒã¿ã¹ããã£ãããããã®ããã¥ã¡ã³ãã䜿çšããŠããã¯ãããžãããç解ããããã·ã§ã³ã¯ãªãã£ã«ã«ãªãœãããŠã§ã¢ã§äœ¿çšããããã®è£œåãå±éããããšããå§ãããŸãã
ãã®ããã¥ã¢ã«ã¯ãã¯ã©ã¹ã¿ãŒç®¡çã€ã³ã¿ãŒãã§ãŒã¹ãžã®å®å šãªã¢ã¯ã»ã¹ãæäŸããŠããŸããã æ£ããURLãç¥ã£ãŠããã°ã誰ã§ã圌ã«é£çµ¡ã§ããŸãã æ¬çªç°å¢ã§ãã®æ§æã䜿çšããå Žåã¯ããã¡ã€ã¢ãŠã©ãŒã«ã«ãŒã«ã«ãã£ãŠããŒã8080ãžã®ã¢ã¯ã»ã¹ãå¿ ããããã¯ããŠãã ããã
ãã®ã¬ã€ãã§ã¯ãSSLæå·åã䜿çšããªãå®å šã§ãªãã€ã³ã¹ããŒã«ã«ã€ããŠèª¬æããŠãããããå®çšŒåç°å¢ã§ã®äœ¿çšã¯æšå¥šãããŠããŸããã å®å šãªã€ã³ã¹ããŒã«ã®è©³çŽ°ã«ã€ããŠã¯ãããå®å šãªèšäºãåç §ããŠãã ããããã®èšäºã§ã¯ã 蚌ææžã®äœæã«ã€ããŠèª¬æããŸãããã®åŸãåããŒãã®éå§æã«ãããã®ãã£ã¬ã¯ããªããã©ã¡ãŒã¿ãŒãšããŠè¿œå ãããŸãã
æºåãã
éå§ããåã«ã次ã®ãã®ãå¿ èŠã§ãã
- 2 GB以äžã®RAMãšãã©ã€ããŒããããã¯ãŒã¯ [DigitalOcean]ãªãã·ã§ã³ãæå¹ãªUbuntu 16.04ãæèŒãã3å°ã®ãµãŒããŒã ãããã¯ãã¹ãŠ1ã€ã®é åã«ããå¿
èŠããããŸãã ãã®èšäºã§ã¯ãååãšããŠ
cockroach-01
ãcockroach-02
ãcockroach-03
ãŸãã - 管çè ãŠãŒã¶ãŒãåãµãŒããŒã«è¿œå ããå¿ èŠããããŸãïŒrootã§ã¯ãªããsudoç¹æš©ã䜿çšïŒã
- ãã¹ãŠã®ãµãŒããŒã§ã¯ã2ã€ã®ããŒãã§TCPãã©ãã£ãã¯ãæå¹ã«ããå¿
èŠããããŸãã UFWããã¡ã€ã¢ãŠã©ãŒã«ãšããŠæ§æãããŠããå Žåãããã«å¿ããŠæ§æããå¿
èŠããããŸãã
- 26257-ããŒãéããã³ã¢ããªã±ãŒã·ã§ã³ãšã®çžäºäœçšïŒ
sudo ufw allow 26257/tcp
ïŒ; -
sudo ufw allow 8080/tcp
管çUI管çã€ã³ã¿ãŒãã§ãŒã¹çšïŒsudo ufw allow 8080/tcp
ïŒã
- 26257-ããŒãéããã³ã¢ããªã±ãŒã·ã§ã³ãšã®çžäºäœçšïŒ
- ãªãã·ã§ã³ïŒåãµãŒããŒã«NTPãã€ã³ã¹ããŒã«ããŠæ§æããŸãã ïŒçããã¹ãçšã«DBMSããããã€ããå Žåãããã¯å¿ èŠãããŸãããïŒ
åãµãŒããŒã®å éšããã³å€éšIPã¢ãã¬ã¹ã調ã¹ãŸãã ããã¥ã¢ã«ã®åŸåã§ã圌ãã¯
cockroach_01_public_ip
ãš
cockroach_01_private_ip
圢åŒã®è¡šèšæ³ã䜿çšããŸãã DigitalOceanã®å éšIPã確èªããã«ã¯ãã³ã³ãããŒã«ããã«ã«ç§»åããŠãæ å ±ã®äžéšãããã¯ã®[ ãã©ã€ããŒãIP]ãã£ãŒã«ãã確èªããŸãã
1. CockroachDBãã€ã³ã¹ããŒã«ããŸã
åã¯ã©ã¹ã¿ãŒããŒãã«ã¯ã
cockroach
å®è¡å¯èœãã¡ã€ã«ãå¿ èŠã§ãã 以äžã§ã¯ãæåã®ãµãŒããŒïŒ
cockroach-01
ïŒãžã®CockroachDBã®ã€ã³ã¹ããŒã«ã«ã€ããŠèª¬æããŸããããã¯ãä»ã®ããŒãã§æäœãå®è¡ããå¿ èŠãããã®ãšåæ§ã§ãã
SSHãä»ããŠãµãŒããŒã«æ¥ç¶ãããã®åŸããŠãŒã¶ãŒã®ããŒã ãã£ã¬ã¯ããªã«ææ°ã®
cockroach
ãã€ããªãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ããŸãã
$ ssh sammy@cockroach_01_public_ip $ wget https://binaries.cockroachdb.com/cockroach-latest.linux-amd64.tgz?s=do $ tar -xf cockroach-latest.linux-amd64.tgz?s=do --strip=1 cockroach-latest.linux-amd64/cockroach $ sudo mv cockroach /usr/local/bin
ãã®ããŒãžã§ã³ãèªèããŠãDBMSå®è¡å¯èœãã¡ã€ã«ã䜿çšå¯èœã§ããããšã確èªããŸãã
$ cockroach version Build Tag: v1.0-rc.1-dirty Build Time: 2017/05/01 18:33:34 Distribution: CCL Platform: linux amd64 Go Version: go1.8.1 C Compiler: gcc 6.3.0 Build SHA-1: 2d4d1ab5c42efb5accf73c9876e6ffd934fdc9e6 Build Type: release
ãããã®æé ã®åŸãã·ã¹ãã ã
cockroach
ã³ãã³ããèŠã€ããããªãå Žåã¯ããã¡ã€ã«ãå®éã«ããŠã³ããŒãããã解åããã移åãããŠããããšã確èªããŠãã ããã
ã¯ã©ã¹ã¿ããŒãã«ãªãä»ã®2ã€ã®ãµãŒããŒïŒ
cockroach-02
ããã³
cockroach-03
ïŒã§ãããã®æäœãç¹°ãè¿ããŸãã ãã®åŸãã¯ã©ã¹ã¿ãŒèªäœãæ§æã§ããŸãã
2.æåã®ããŒããæ§æãã
æåã®CockroachDBããŒãã§ãã
cockroach-01
ãã¯ã©ã¹ã¿ãŒãèµ·åããŸãã ãã ãããã®æ§æã«ã¯ç¹å¥ãªãã®ã¯ãããŸããã1ã€ã®DBMSãµãŒããŒãšããŠèµ·åããä»ã®DBMSãµãŒããŒã«åå ããŸãã
ã¯ã©ã¹ã¿ãŒãèµ·åããã«ã¯ã
cockroach-01
次ã®ã³ãã³ããå®è¡ããŸãã
cockroach start --insecure --background --advertise-host=cockroach_01_private_ip
SSLæå·åãªãã§ããŒããèµ·åãïŒ
--insecure
ïŒããããªãäœæ¥ã®ããã«ã³ãã³ãã©ã€ã³ãè¿ãïŒ
--background
ïŒãå éšIPãä»ããŠä»ã®ããŒããšéä¿¡ããããã«ããŒããäžããŸãïŒ
--advertise-host
ïŒã äžèšã®
cockroach_01_private_ip
ã¯ãæåã®ãµãŒããŒã®å®éã®å éšIPã«çœ®ãæããå¿ èŠããããŸãã
ããŒããèµ·åãããšãã«ããµãŒããŒã®åäœãå€æŽããããã€ãã®è¿œå ãã©ã°ïŒããšãã°ãããŒã¿ãä¿åãããŠãããã£ã¬ã¯ããªïŒã§ããŒããèšå®ã§ããããšã«æ³šæããŠãã ãã ã ãããã®ãã©ã°ã¯ãã¹ãŠã å ¬åŒææž ïŒè±èªïŒã§èª¬æãããŠããŸãã
ããŒãïŒããã³ã¯ã©ã¹ã¿ãŒïŒãåäœãå§ããã®ã§ãã¯ã©ã¹ã¿ãŒã«é¢ããæ å ±ãååŸããããã«CockroachDBã«çµã¿èŸŒãŸããŠãã管çUI管çã€ã³ã¿ãŒãã§ã€ã¹ã³ã³ãããŒã«ããã«ã䜿çšããŠãããŒãã«é¢ããæ å ±ã確èªã§ããŸãã ã¢ãã¬ã¹
http://cockroach_01_public_ip:8080
移åããŸãïŒçŸåšããããªãã¯IPã¯ãã§ã«äœ¿çšãããŠããŸãïŒã
ããŒããæ£åžžã«éå§ããããšããäºå®ã¯ãã€ã³ã¿ãŒãã§ãŒã¹ã«è¡šç€ºãããŸãã
ããŒããéç¥ããæå笊ïŒïŒïŒã®äžã«ããŠã¹ã移åãããšãããŒããäžè¶³ããŠãããããã¯ã©ã¹ã¿ãŒã®ã¬ããªã±ãŒã·ã§ã³ã¬ãã«ãäœãïŒ ã¬ããªã±ãŒã·ã§ã³ãäœã ïŒãšãã説æã衚瀺ãããŸãã çŸåšå®è¡äžã®ããŒãã1ã€ãããšã転åããå ŽåïŒå®å®ããåäœã«å¿ èŠãªããŒãã®æ°ã«ã€ããŠã¯ã以äžã®æ®µèœ5ããèªã¿ãã ããïŒ ãããŒã¿ã¯åŸ©å ãããŸããã
次ã®æ®µéã§ã2ã€ã®ãµãŒããŒãã¯ã©ã¹ã¿ãŒã®2ã€ã®ããŒããšããŠè¿œå ãããšãç¶æ³ã¯ä¿®æ£ãããŸãã 3ã€ã®ããŒãããããããCockroachDBã¯ãã¹ãŠã®ããŒã¿ã®3ã€ã®ã³ããŒã®å¯çšæ§ãä¿èšŒããããŒãã®1ã€ãèœã¡ãå Žåã®ãªã«ããªãä¿èšŒããŸãã
3. 2çªç®ãš3çªç®ã®ããŒããã¯ã©ã¹ã¿ãŒã«è¿œå ãã
cockroach-02
ãµãŒããŒã§ãåã®æé ã®æåã®ããŒããšåãæ¹æ³ã§
cockroach-02
ã³ãã³ããå®è¡ããŸãããå¯äžã®éãããããŸãã DBMSã®ãã©ã¡ãŒã¿ãŒã§ã¯ãå éšIPã¢ãã¬ã¹ãä»ããŠæåã®ããŒãã«åå ããå¿ èŠãããããšã瀺ããŠããŸãã 以äžã®ã³ãã³ãã§ãäž¡æ¹ã®å€æ°ãIPïŒ
cockroach_02_private_ip
ããã³
cockroach_01_private_ip
ïŒã«çœ®ãæããŸãïŒ
$ cockroach start --insecure --background \ --advertise-host=cockroach_02_private_ip \ --join=cockroach_01_private_ip:26257
3çªç®ã®ãµãŒããŒïŒ
cockroach-03
ïŒã§åãã³ãã³ããå®è¡ããããã§å éšIPãæå®ããŸãã æåã®ããŒãã«ãæ¥ç¶ããŸãã
$ cockroach start --insecure --background \ --advertise-host=cockroach_03_private_ip \ --join=cockroach_01_private_ip:26257
ä»»æã®ããŒãã®ç®¡çã€ã³ã¿ãŒãã§ãŒã¹ïŒç®¡çUIïŒïŒ
http://cockroach_03_public_ip:8080
ïŒã«ç§»åããã¯ã©ã¹ã¿ãŒã3ã€ã®ããŒãã§æ§æãããŠããããšã確èªããŸãã
ãã¹ãŠã®ããŒãã¯çžäºæ¥ç¶ãããŠãããåãããŒã¿ã«ã¢ã¯ã»ã¹ã§ããŸãã
4ïŒãªãã·ã§ã³ïŒã ããŒãéã®ããŒã¿è»¢éã®ãã¢ã³ã¹ãã¬ãŒã·ã§ã³
ä»»æã®ããŒããžã®ããŒã¿ã®èšé²ã¯ãã¯ã©ã¹ã¿ãŒã®ä»ã®ãã¹ãŠã®ããŒãã«ååšããããšãæå³ããŸãã ãããå®èšŒããæãç°¡åãªæ¹æ³ã¯ãCockroachDBããã®ãµã³ãã«ããŒã¿çæã䜿çšããçµã¿èŸŒã¿SQLã¯ã©ã€ã¢ã³ãã䜿çšããŠçµæã衚瀺ããããšã§ãã
æåã®
cockroach-01
ããŒãã§ãããŒã¿ãçæããŸãã
$ cockroach gen example-data | cockroach sql
startrek
å®éšçšã®ããŒã¿ããŒã¹
startrek
ã ããã§ãSQLã¯ã©ã€ã¢ã³ããèµ·åããŠãã¯ã©ã¹ã¿ãŒå ã®ããŒã¿ããŒã¹ã®ãªã¹ãã衚瀺ã§ããŸãã
$ cockroach sql
> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | pg_catalog | | startrek | | system | +--------------------+
CockroachDBã¯ç¬èªã®SQLãã€ã¢ã¬ã¯ãã§åäœããããšã«æ³šæããŠãã ãã ãããã¯ãä»ã®DBMSãæäŸãããã®ãšã¯ç°ãªãSQLæšæºã®æ¡åŒµæ©èœãåããŠããŸãã
2çªç®ã®
cockroach-02
ããŒãã§ãåãã³ãã³ããå®è¡ã§ããŸãã
$ cockroach sql
> SHOW DATABASES;
1ã€ã®ããŒãïŒ
startrek
ããŒã¿ããŒã¹ïŒã§äœæãããããŒã¿ãä»ã®ããŒãã§äœ¿çšã§ããããšã¯ç°¡åã«
startrek
ãŸãã ä»»æã®ããŒãïŒããšãã°ã
http://cockroach_01_public_ip:8080/#/databases/
ïŒã®ç®¡çUIã€ã³ã¿ãŒãã§ã€ã¹ã®[ããŒã¿ããŒã¹]ã¿ãã§ãã¯ã©ã¹ã¿ãŒã«ååšããããŒã¿ããŒã¹ã®ãªã¹ãã衚瀺ã§ããŸãã
5ïŒãªãã·ã§ã³ïŒã ã¯ã©ã¹ã¿ãŒããããŒããåé€ãã
CockroachDBã¯ããµãŒããŒã«é害ãçºçããå Žåã®ããŒã¿ã®å¯çšæ§ãšããŒã¿ã®æŽåæ§ãä¿èšŒããŸãã é害
(n-1)/2
ããŒãïŒ
n
ã¯ã¯ã©ã¹ã¿ãŒå ã®ããŒãã®ç·æ°
(n-1)/2
çºçããŠããDBMSã¯å®å®ãããŸãŸã§ãã ãããã£ãŠã3ã€ã®ããŒãã䜿çšãããã®äŸã§ã¯ã1ã€ã®ããŒããïŒããŒã¿ã倱ãããšãªãïŒèœã¡ãå¯èœæ§ããããŸãã
ãããå®èšŒããã«ã¯ãã¯ã©ã¹ã¿ãŒãã1ã€ã®ããŒããåé€ããããŒã¿ããŸã å©çšå¯èœãã©ããã確èªããŸãã 次ã«ïŒãã©ã°ã©ã6ã§ïŒããŒããåã³ã¯ã©ã¹ã¿ãŒã«æ¥ç¶ããé害äžã«çºçãããã¹ãŠã®å€æŽã確å®ã«åä¿¡ããããã«ããŸãã
cockroach-02
ã®2çªç®ã®ããŒãã§ãSQLã¯ã©ã€ã¢ã³ããå®è¡ãã
quotes
ããŒãã«ã®è¡æ°ãã«ãŠã³ã
quotes
ãŸãã
$ cockroach sql
> SELECT COUNT(*) FROM startrek.quotes;
çãã¯200è¡ã§ãã <Ctrl> + <c>ãæŒããšãSQLã¯ã©ã€ã¢ã³ããçµäºã§ããŸãã
次ã«ããã®ããŒããã¯ã©ã¹ã¿ãŒããåé€ããããŒã¿ãä»ã®ããŒãã«æ®ã£ãŠããããšã確èªããŸãã ãããè¡ãã«ã¯ã
cockroach-02
ããŒãã§ã次ã®ã³ãã³ãã䜿çšããŠCockroachDBããã»ã¹ãå®äºããŸãã
$ cockroach quit
å¥ã®ããŒãïŒããšãã°
cockroach-03
ïŒã«ç§»åããSQLã¯ã©ã€ã¢ã³ããèµ·åããŠãåãããŒãã«å ã®è¡æ°ã確èªããŸãã
$ cockroach sql
SELECT COUNT(*) FROM startrek.quotes;
ããŒãã®1ã€ãåæãããšãåã200è¡ã䜿çšå¯èœã«ãªããŸãã
6ïŒãªãã·ã§ã³ïŒã ããŒããã¯ã©ã¹ã¿ãŒã«åæ¥ç¶ãã
ããã§ããã¹ãã®å¯çšæ§ã®åéã«å¯ŸããCockroachDBã®æ£ããå¿çã瀺ããŸãã ãããè¡ãã«ã¯ããŸãããŒã¿ã®äžéšãåé€ããŠãããåæãããããŒããã¯ã©ã¹ã¿ãŒã«è¿ãããã®ããŒã¿ãé¢é£ããããšã確èªããŸãã
äœæ¥ããŒãã®1ã€ïŒããšãã°
cockroach-03
ïŒã§ã
quotes
ããŒãã«ããããŒã¿ã®äžéšãåé€
quotes
ãŸãã
> DELETE FROM startrek.quotes WHERE episode > 50; > SELECT COUNT(*) FROM startrek.quotes;
æ®ã133è¡ã ã¯ã©ã¹ã¿ãŒããé€å€ãããããŒãïŒ
cockroach-02
ïŒã«æ»ããå床å®è¡ããŸãã
$ cockroach start --insecure --background \ --advertise-host=cockroach_02_private_ip \ --join=cockroach_01_private_ip:26257
ããã§SQLã¯ã©ã€ã¢ã³ããå®è¡ãã
quotes
ããŒãã«ã®è¡æ°ã確èª
quotes
ãŸã
$ cockroach sql > SELECT COUNT(*) FROM startrek.quotes;
åºåã«ã¯åã³133ã衚瀺ãããŸãã ãããã£ãŠããªãã©ã€ã³ããŒãã¯ã¯ã©ã¹ã¿ãŒã«æ»ããšãã«å€æŽãåãåããŸããã
以åã«çæããããã¹ãŠã®ããŒã¿ãåé€ããã«ã¯ã
cockroach sql
ã§å®è¡ããŸãã
> DROP TABLE quotes; > DROP TABLE episodes; > DROP DATABASE startrek;
7ïŒãªãã·ã§ã³ïŒã ã¢ããªã±ãŒã·ã§ã³æ¥ç¶
ã¢ããªã±ãŒã·ã§ã³ããCockroachDBã䜿çšããã«ã¯ã次ã®ãã®ãå¿ èŠã§ãã
- ã¢ããªã±ãŒã·ã§ã³ã§ãµããŒããããŠãããã©ã€ããŒïŒCockroachDBã¯PostgreSQLã®ãã©ã€ããŒã§åäœããŸãïŒã
- æ¥ç¶æååã
以äžã¯äžè¬çãªäŸã§ã-ã¢ããªã±ãŒã·ã§ã³ã«ã¯ä»ã®ããŒã¿ãå¿ èŠãªå ŽåããããŸãã
ã¢ããªã±ãŒã·ã§ã³ã®PostgreSQLäºæã¯ã©ã€ã¢ã³ãã®ãªã¹ããããã©ã€ããŒãéžæããŠã€ã³ã¹ããŒã«ããŸãã
CockroachDBã¯PostgreSQLãããã³ã«ããµããŒãããŠããŸããããã®SQLèšèªã®æ§æã¯ç°ãªãããããã®DBMSã¯PostgreSQLã®æ¢è£œã®ä»£æ¿åã§ã¯ãªãããšã«æ³šæããŠãã ãã ã
æ¥ç¶æååã¯ãããŒã26257ãšä»»æã®ã¯ã©ã¹ã¿ãŒããŒãã®IPã¢ãã¬ã¹ãæããŠããå¿ èŠããããŸãã ãã¡ã€ã¢ãŠã©ãŒã«ã¯ãã®ããŒãã§ã®æ¥ç¶ãèš±å¯ããå¿ èŠãããããšã«æ³šæããŠãã ããã
ããšãã°ãããŒã«ã«ãã·ã³ïŒ
localhost
ïŒäžã®
bank
ããŒã¿ããŒã¹ãžã®ãŠãŒã¶ãŒ
sammy
PHP / PDOã§ã®æ¥ç¶ã¯æ¬¡ã®ããã«ãªããŸãã
PDO('pgsql:host=localhost;port=26257;dbname=bank;sslmode=disable', 'sammy', null, array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_EMULATE_PREPARES => true, ));
CockroachDBã®ããã¥ã¡ã³ãã«ã¯ãããŸããŸãªããã°ã©ãã³ã°èšèªçšã®PostgreSQLã¯ã©ã€ã¢ã³ããã©ã€ããŒã®äœ¿çšäŸãå€æ°ãããŸã ã
ãããã«
äœæããã3ã€ã®ããŒãã®ã¯ã©ã¹ã¿ãŒã¯ãCockroachDBã®åºæ¬æ©èœãšã¢ããªã±ãŒã·ã§ã³ãæ¥ç¶ããæ©èœã®ãã¢ã«åœ¹ç«ã¡ãŸããã
CockroachDBã¯æŽ»çºã«éçºãããŠãããããããæ¥ãã³ã³ãããŒã«ããã«ã«ã補åã®æ°ããããŒãžã§ã³ã®å¯çšæ§ã«é¢ããã¡ãã»ãŒãžã衚瀺ãããŸãïŒ CockroachDBã®æ°ããããŒãžã§ã³ãå©çšå¯èœã§ã ïŒã [ æŽæ° ]ãã¿ã³ãã¯ãªãã¯ãããšãæŽæ°ããããã€ããªãã¡ã€ã«ãžã®ãªã³ã¯ã䜿çšå¯èœã«ãªããŸããããŠã³ããŒããšã€ã³ã¹ããŒã«ã«ã¯ãçŸæç¹ã§ã¯æåã®ä»å ¥ãå¿ èŠã§ãã
DBMSã€ã³ã¹ããŒã«ã®æ°Žå¹³ã¹ã±ãŒãªã³ã°ã®å Žåãã€ãŸã æ°ããããŒããè¿œå ããã«ã¯ã2çªç®ãš3çªç®ã®ããŒãã«å¯ŸããŠå®è¡ããæé ãç¹°ãè¿ãå¿ èŠããããŸãã
cockroach
å®è¡å¯èœãã¡ã€ã«ãã€ã³ã¹ããŒã«ããã¯ã©ã¹ã¿ãŒãžã®æ¥ç¶ã§å®è¡ããã ãã§ãã
å®çšŒåç°å¢ã§ CockroachDBãå®è¡ããåã«ãæšå¥šèšå®ã確èªããŠãã ããã å ¬åŒã®è£œåããã¥ã¡ã³ãïŒè±èªïŒãžã®ã¡ã€ã³ãªã³ã¯ã¯www.cockroachlabs.com/docsã§ãã
æŽæ°ïŒ5æ11æ¥ïŒïŒ CockroachDB 1.0 ã®æçµãªãªãŒã¹ãæ¢ã«è¡ãããŠããŸãã 圌ã®å ¬åŒçºè¡šã§ã¯ãDBMSã¯Baiduããã³Heroic Labsã®å®çšŒåç°å¢ã§äœ¿çšãããŠãããšè¿°ã¹ãŠããŸãã