TIL
-
2025.01.07 mariadb source codeTIL 2025. 1. 7. 23:49
장애 분석을 위해서, 디버깅을 해보고 있습니다.mariadb 소스 코드에서 보고 있는 부분은 connection을 맺고 끊는 부분입니다. server/sql/sql_connect.cc at fd9a11d8a5b820f8d08b28fb2f198edc6f196342 · MariaDB/serverMariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stab...github.com아래 코드를 보면 THD를 만들고 doCom..
-
2024.12.22 galera health check, xk6-sqlTIL 2024. 12. 22. 21:36
galera health check pxc-release/src/github.com/cloudfoundry-incubator/galera-healthcheck at main · cloudfoundry/pxc-releaseBOSH release of Percona Xtradb Cluster . Contribute to cloudfoundry/pxc-release development by creating an account on GitHub.github.com galera health check 기능이다.단순히 db 포트에 ping을 쳐서 health check 할 수도 있지만, 클러스터나 복제등을 사용할 때는 다른 health check방식을 사용해야 한다.galera는 위의 프로그램을 사용할 수 있다...
-
2024.12.04 WALTIL 2024. 12. 4. 22:03
https://medium.com/@_sidharth_m_/how-databases-avoid-data-loss-with-write-ahead-logs-ce0a60b8c505 How Databases Avoid Data Loss with Write-Ahead Logs?Understanding Database Failure Handling Using Write-Ahead Logmedium.com 장애, 실패는 모든 시스템에서 나타날 수 있다.DB 또한 예외는 아니다.이 글은 DB 장애 시 쓰기 일관성을 보장하는 방법을 소개하고 있다.WAL(Write Ahead Log)를 소개하는데 모든 쓰기 요청이 DB에 반영되기 전에 해당 파일에 적재된다는 것이다.만약에 DB장애가 난다면 로그 읽었던 지점부터 다시 읽어..
-
2024.11.28 System Design Of InstagramTIL 2024. 11. 28. 23:50
System Design Of InstagramInstagram is a free photo and video sharing app available on iPhone and Android. People can upload photos or videos to our service and…medium.com인스타 시스템 디자인이다.MSA로 되어있는데 목적에 맞게 데이터 저장 매체가 다르다. 검색은 일라스틱 서치로, 포스트는 카산드라로, 유저정보는 RDS에.. 이런 식으로 저장된다.음 항상 RDS를 중심으로 했었는데 데이터의 양을 중심으로 생각하면 당연한 선택으로 생각된다.공통된 key 값만 있으면 정보는 조회가 가능하니 좋은 선택이다.이전에 트위터 시스템 디자인에서 설명했던 유명인 문제도 비슷하게 처리한다..
-
2024.11.17 dbTIL 2024. 11. 17. 22:08
https://velog.io/@yyong3519/RDS-Slow-%EC%BF%BC%EB%A6%AC-Slack%EC%9C%BC%EB%A1%9C-%EC%95%8C%EB%9E%8C-%EB%B3%B4%EB%82%B4%EA%B8%B0 Mysql Slow 쿼리 Slack으로 알람 보내기출처 글 작성 계기 1. Slow Log 남기기 2. Lambda 3. CloudWatch & Lambda 연동velog.io https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_db&wr_id=225714 WWW.PHPSCHOOL.COM개발자 커뮤니티 1위 PHPSCHOOL.COM 입니다.www.phpschool.com https://jungseob86.tistory...
-
2024.11.16 pinterest shardingTIL 2024. 11. 17. 21:17
https://medium.com/pinterest-engineering/sharding-pinterest-how-we-scaled-our-mysql-fleet-3f341e96ca6f Sharding Pinterest: How we scaled our MySQL fleetThis is a technical dive into how we split our data across many MySQL servers. We finished launching this sharding approach in early 2012, and it’s still the system we use today to store our core…medium.com 이전에 pinterest sharding관련 글도 읽었었는데요. 20..
-
2024.11.08 Meta cache, AOPTIL 2024. 11. 8. 22:42
https://moonsub-kim.github.io/docs/meta/cache-made-consistent-metas-cache-invalidation-solution/ Cache made consistent: Meta’s cache invalidation solutionMeta의 Cache made consistent: Meta’s cache invalidation solution 을 번역한 글 입니다.moonsub-kim.github.iohttps://engineering.fb.com/2022/06/08/core-infra/cache-made-consistent/ Cache made consistentCaches help reduce latency, scale read-heavy workloads..
-
2024.11.07 meta cacheTIL 2024. 11. 7. 23:19
https://www.imayanks.com/blogs/how-meta-improved-cache-consistency How meta improved their cache consistency to 99.99999999Mayank Sharma How meta improved their cache consistency to 99.99999999 Introduction Caching is a powerful technique used across various aspects of computer systems, from hardware like caches to operating systems, web browsers, and especially backend develowww.imayanks.com아직 ..