2022-12-01ãã1ã¶æéã®è¨äºä¸è¦§
MySQLã¯brewã§å ¥ãã¦TiDBã¯tiupã§ç«ã¡ä¸ããç´å¾ã«sysbenchãå®è¡ãã¦ã¿ãçµæãMacä¸ã§DBãä¸ãã¦Macä¸ã§sysbenchãå®è¡ããã¨ããæ¬çªã§ã¯ã¾ãç¡ããããªæ§æã§ãã£ã¦ãã¾ããçµæã¨ãã¦ã¯MySQLã®æ¹ãåè¿ãQPSãåºãã¦ãã¾ãããTiDBã®ã¹ã±ã¼ã«ã¢ããã試â¦
github.com RocksDBã¯ãKey-Valueã¹ãã¢ããã³èªã¿åã/æ¸ãè¾¼ã¿æ©è½ãæä¾ããLSMããªã¼ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã§ãã Facebookã«ãã£ã¦éçºãããLevelDBã«åºã¥ãã¦ãã¾ãã atmarkit.itmedia.co.jp
github.com 2022å¹´æå¾ã®éç¨ãå°ã楽ã«ããããç¥ããªããã¼ã«ã§ããopen(2)æã®ãã©ã°ããã¨ããç¥ãããã¨ããå ´åã¯/proc/${pid}/fdinfo/${fd}ã®ä¸èº«ãè¦ãå¿ è¦ãããã®ã§ããããã8é²æ°ã§ããåºåã§ããªãã®ã§ããæãã«ãã¼ã¹ãã¦ããããã¤ãæ¸ãã¾â¦
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #define LOG_FILE_PATH "./test.log" int main(int argc, char **argv) { int fd, size; char buf[128]; fd = open(LOG_FILE_PATH, (O_RDONLY | O_CREAT), 0664); if (fd < 0) { return -1; } int flags =</stdlib.h></stdio.h></fcntl.h></sys/stat.h></sys/types.h>â¦
å¹´å§ã«æ¸ããç®æ¨ã®é²æ ryuichi1208.hateblo.jp ãã®è¨äºãæ¸ãã¦æ©1å¹´ãçµã£ãã2022å¹´ãã¼ã¸ã§ã³ã®æ¯ãè¿ãã§ãã 2022å¹´ç®æ¨ã»CKA or CKADåå¾ã»AWS ãããã§ãã·ã§ãã«ç³»åãã»ã«ã³ãã¡ã¬ã³ã¹ä½ãåºãã»ä¼ç¤¾ã®ããã¯ããã°ãæ¸ãâ Ryuichi@Gurasan:|| (â¦
æ¦è¦ DynamoDBãCassandraãScyllaDB ãªã©ãå¤ãã®é常ã«ã¹ã±ã¼ã©ãã«ãª NoSQL åæ£ãã¼å¤åãã¼ã¿ãã¼ã¹ã®åºç¤ã¨ãªããã¼ã¿æ§é ã§ããRDBã§ã¡ã¤ã³ã®B-Treeã¨ã¯éã£ã¦KVSãªã©ã§ä½¿ããã¦ãã¾ããä¸æ¹ã§TiKVãªã©NewSQLã®æèã§ãç»å ´ããæ©ä¼ãå¤ãç¥ã£ã¦ããâ¦
è¨äºèª¬æ NewSQLã«è§¦ããæ©ä¼ãåºã¦ããããªã®ã§ã¨ããããæ¦è¦ã ãã§ãç¥ã£ã¦ããããã®ã§å ¥éããã æè¬ãNewSQLãã¨å¼ã°ãããã©ã³ã¶ã¯ã·ã§ã³å¦çãå®ç¾ãã¤ã¤ãreadãwriteãã¹ã±ã¼ã©ããªãã£ãåããæ°ãã種é¡ã®RDBããã®NewSQLã®ä¸ã§ãä»åã¯OSSã§éâ¦
ãã®è¨äºã¯ãITé¢é£ã®æ®æ®µã®ãä»äºã«ã¤ãã¦è²ã ï¼ãã®25æ¥ç®ã®è¨äºã§ãï¼æ®æ®µã®ä»äºã®å·¥å¤«ç¹ãèãã¦ããã¨ã«ã¤ãã¦æ¸ãã¦ãã¾ãï¼ qiita.com è¨äºã®æ¦è¦ åç¾æ§ã¨è¨èªåã«ã¤ãã¦æè¿æã£ã¦ããã¨ã®ã¡ã¢è¨äºã§ããå¹´æ«ãªã®ã§ãã¨ã å¤ãã§ãããã¨ã ã£ã¦ãªãâ¦
ryuichi1208.hateblo.jp ãã®è¨äºã®çªå¤ç·¨ï¼çãªè¨äºããã£ã¨æ©ããªãããããæ¤è¨¼ãã¦ã¿ããååããããã¡ã¤ã«æ°ãåãããã«ãã¦ã(éãæ¤è¨¼ããã¦ãããããªã£ã¦ãã¾ã£ãã ã)ã®ã§ååã®ãã¼ã¿ã¨ã®åç´ãªæ¯è¼ã¯åºæ¥ãªãã§ãã ååã®æéã®ã½ã¼ã¹ #incluâ¦
ãã®è¨äºã¯ãSRE Advent Calendar 2022ãã®13æ¥ç®ã®è¨äºã§ãï¼ãã¨ã ã§ãï¼ qiita.com æ¬é¡ å²ãè¾¼ã¿ã¿ã¹ã¯ã®æ±ããé£ããâ Ryuichi@Gurasan:|| (@ryuichi_1208) 2022å¹´12æ25æ¥ ã¹ããªã³ãè¨ç»ã§åºãã¿ã¹ã¯ä»¥å¤ã®ã¿ã¹ã¯ã®æ±ããé£ãããé害対å¿ãã¢ã©ã¼ãâ¦
ãã®è¨äºã¯ãQiitaå²ä¸æå¤è¨é²ãã¤ãããï¼ã¢ã¦ããããã¯ãããã«ã¬ã³ãã¼ Advent Calendar 2022ãã®23æ¥ç®ã®è¨äºã§ãï¼ç©ºãã¦ããã®ã§å ¥ãã¡ããã¾ããï¼ qiita.com ã«ã¬ã³ãã¼ã®æ¦è¦ãè¦ã¦ã¿ã æ¬ã«ã¬ã³ãã¼ã¯Qiita主å¬ã«ãã´ãªã¼ã«ãããç¹å¥ä¼ç»ã§ããâ¦
æ¦è¦ ãã¡ã¤ã«åã®ãªã¹ãã ãé«éã«æ¬²ããã¿ãããªå ´åã«å¤§éã«ãã¡ã¤ã«ããããã£ã¬ã¯ããªã§lsãæã£ã¦è¿ã£ã¦ããªãã¿ãããªã®ãå°å³ã«ã¹ãã¬ã¹ã«ãªã£ããããã®ã§é«éã«æ¸ã¾ããæ段ãç¡ããã調ã¹ã¦ã¿ãã 1ãã£ã¬ã¯ããªã«100ä¸ãã¡ã¤ã«ç¨åº¦ è¨æ¸¬åã«echoâ¦
å説 ãã®è¨äºã¯ãGMOãããã¨ã³ã¸ã㢠Advent Calendar 2022ãã®23æ¥ç®ã®è¨äºã§ãï¼ adventar.org ç®æ¬¡ å説 ç®æ¬¡ æ¬ç·¨ è¦ä»¶æ´ç çµè« ãªã«ã¯ã¨ãããããã«ããã¯ç¹å®/æ¹åããã¦ã¿ã 家åºç¨ãµã¼ãã®å ´å Diskæ§è½ãä¸ãã¦ã¿ã ãããã¯ã¼ã¯æ§è½ãä¸ãã¦ã¿â¦
ãã®è¨äºã¯ãLinux Advent Calendar 2022ãã®21æ¥ç®ã§ãï¼ç©ºãã¦ããã®ã§ããããã¦ããã ãã¾ããï¼ï¼:waiwai: qiita.com æ¦è¦ ã¿ã¤ãã«ãå ¨ã¦ã§ããããä¸è¬ã¦ã¼ã¶ã§å®è¡ããã¦ããããã»ã¹ãwrite権éãæã£ã¦ãç¶æ ã§ãªã¼ãã³ãããã¡ã¤ã«ã¸ã¯å¥ã¿ã¼ããâ¦
mysql -e "select sleep(30)"ã¨ããã£ã¦ããã¦MySQLå´ã¯ã©ãããå¦çããã¦ããã®ããstraceã§è¦ã¦ã¿ãã¡ã¢ poll([{fd=41, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=41, revents=POLLIN}]) ioctl(41, FIONREAD, [0]) = 0 futex(0x1d8ff10, FUTEX_WAKE_PRIVâ¦
github.com Linuxã®TCPã¯2段(netdevãããã®ã§å³å¯ã«ã¯3段以ä¸)ã®ãã¥ã¼ã®ä»çµã¿ãããã¾ããã¯ã©ã¤ã¢ã³ããconnect(2)ã¯ãµã¼ãå´ã®OSãackãè¿ããæç¹ã§connect(2)ã¯æ»ãã¾ãããã®ç¶æ ã§ãµã¼ãã¢ããªã±ã¼ã·ã§ã³ãaccept(2)ãå®è¡ãããã¨ã§ã¯ã©ã¤ã¢ã³ãã¨â¦
ããã»ã¹ã®çµäºã¯do_exité¢æ°ã§è¡ããã¾ããæ示çã«exitã·ã¹ãã ã³ã¼ã«ã å¼ã³åºããã¨ã以å¤ã«ããã·ã°ãã«ãåãã¦æ»ã¬ã¨ããªã©ã«ãå¼ã³åºããã¾ãã do_exité¢æ°ã§ã¯ãªã½ã¼ã¹ã®è§£æ¾ãè¡ã£ã¦ããä»åèªã¿ããã½ã±ãããéããå¦çãå¼ã³åºãã¦ããã¾ããâ¦
ã¾ã¨ã var tmp []byte // ãããããã str := string([]byte) // ããããæ¹ãã¡ã¢ãªã³ãã¼ãçºçããªãã®ã§æ©ã str := *(*string)(unsafe.Pointer(&tmp)) æ¬æ 以ä¸ã®ãããªé¢æ°ããã³ããã¼ã¯ãããã¨ãã«ä½¿ãã話ã§ãã package main import ( "os" "râ¦
qiita.com ãã®è¨äºã¯ãMySQL Advent Calendar 2022ãã®20æ¥ç®ã®è¨äºã§ãï¼åã«æ¸ãããã¤(æ©è½çºè¡¨ãããæ°æéå¾ã«æ¸ãã)ã®å çä¿®æ£çã«ãªãã¾ãï¼ dev.classmethod.jp AWS re:Invent 2022ã§çºè¡¨ããã¦ããæ©è½ãæåè¦ãç¬éãï¼ï¼ï¼ãã¨ãªã£ããè¬æè¡â¦
ãã®è¨äºã¯ãnginx Advent Calendar 2022ãã®17æ¥ç®ã®è¨äºã§ãã ngx_http_limit_req_moduleã使ããã¨ã§ãªãããã®å¶éãè¡ããã¨ãåºæ¥ããããã§çåã«æã£ãããã¡ããã¡ã大éã«ã¢ã¯ã»ã¹å ããããµã¤ãã§ãã®å®è£ ãããã¨ãã©ãããã¡ã¢ãªã®ä½¿ãæ¹ããâ¦
è²·ã£ããã®ç´¹ä» TOSHIBA / æ±è REGZA 48X8900L [48ã¤ã³ã] item.rakuten.co.jp åãã¦ã®ææ©ELãã¬ãããã©ã¨ãã£ããè¦ãªãã®ã§å®ã¯ããã¾ã§æ©æµåãã¦ããªãã ãã¤ãå·¥ç£ èªç«ã¹ã¿ã³ã item.rakuten.co.jp åãã¦ã®ã¹ã¿ã³ããã¬ãå°ãå£ã¨ã®è·é¢ã縮ã¾ã£â¦
ãã®è¨äºã¯ãMackerel Advent Calendar 2022ãã®9æ¥ç®ã§ãï¼å»å¹´ã«å¼ãç¶ãä»å¹´ãä½ã£ããã®ç´¹ä»ããã¦ã¿ã¾ãï¼ qiita.com æ¬ç·¨ github.com /proc/meminfoããã¼ã¹ãã¦åºãã¦ããããã¼ã«ã§ãã1æ1æ¥ã«ä½ã£ãã¿ããã§Mackerelã§éå§ããå¹´ã ã£ãããã§ãã(â¦
ãã®è¨äºã¯ãnginx Advent Calendar 2022ãã®6æ¥ç®ã®è¨äºã§ãï¼ qiita.com en.wikipedia.org nginxã®ã¢ã¼ããã¯ãã£ã¯è¦ªããã»ã¹+åããã»ã¹ã®ã¢ã¼ããã¯ãã£ã§åããã»ã¹(以ä¸ã¯ã¼ã«ããã»ã¹)ãã¯ã©ã¤ã¢ã³ãã¨ã®ããåããè¡ã£ã¦ãã¾ãã åæåå¦ç 親ããâ¦
ãã®è¨äºã¯ãGo Advent Calendar 2022 3ãã®3æ¥ã®è¨äºã§ãï¼ qiita.com å説 aws.amazon.com LambdaãGoã使ã£ã¦ä½ãããããã¨ãã«arm64 ã¢ã¼ããã¯ãã£ã使ãã¨æ©ãã¦å®ããªãã¨ããæ å ±ãå¾ã¦ããã®ã§èª¿ã¹ã¦ã¿ãã çµè« CPUãã¦ã³ããªå¦çãããªããã°ãâ¦
qiita.com ãã®è¨äºã¯ãSRE Advent Calendar 2022ãã®3æ¥ç®ã®è¨äºã§ãï¼ æ¬ç·¨ event.cloudnativedays.jp åå ãã¦ããã1æ¥ç®ããªãã©ã¤ã³ã¤ãã³ããã£ã¡ãä¹ ã ã ã£ããæå¾ã«è¡ã£ãã®ãªãã ããã¨èãã¦ã¿ãã2019ã®OSCã®Fallãæå¾ã ã£ãã£ã½ãããã®ã¨ãâ¦
å説 adventar.org ãã®è¨äºã¯ãGMOãããã¨ã³ã¸ã㢠Advent Calendar 2022ãã®3æ¥ç®ã®è¨äºã§ããã¢ãã«ã¬ãå§ã¾ãã¾ããï¼ãã1å¹´ãçµããã¾ãï¼ãã°ãï¼å¯ãï¼ï¼ å»å¹´ã¯Redisã®ã³ã¼ããªã¼ãã£ã³ã°ãæ¸ãã¦ã¾ãããä»å¹´ã¯Linuxãã¿ã§ãï¼(æ¥é±ã«ã¯å®è·µRedisâ¦