{"id":31025892,"url":"https://github.com/anantadwi13/bdt_ets","last_synced_at":"2026-05-04T13:33:35.525Z","repository":{"id":110981765,"uuid":"213527537","full_name":"anantadwi13/bdt_ets","owner":"anantadwi13","description":"Distributed Database Using MySQL Group Replication","archived":false,"fork":false,"pushed_at":"2019-10-14T08:33:25.000Z","size":672,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T17:36:22.361Z","etag":null,"topics":["apache2","docker","docker-compose","haproxy","mysql","mysql-cluster","mysql-group-replicaion"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anantadwi13.png","metadata":{"files":{"readme":"docs/readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-08T02:07:00.000Z","updated_at":"2019-10-14T08:33:27.000Z","dependencies_parsed_at":"2023-04-19T18:17:05.339Z","dependency_job_id":null,"html_url":"https://github.com/anantadwi13/bdt_ets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anantadwi13/bdt_ets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anantadwi13%2Fbdt_ets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anantadwi13%2Fbdt_ets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anantadwi13%2Fbdt_ets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anantadwi13%2Fbdt_ets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anantadwi13","download_url":"https://codeload.github.com/anantadwi13/bdt_ets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anantadwi13%2Fbdt_ets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache2","docker","docker-compose","haproxy","mysql","mysql-cluster","mysql-group-replicaion"],"created_at":"2025-09-13T17:17:24.224Z","updated_at":"2026-05-04T13:33:35.519Z","avatar_url":"https://github.com/anantadwi13.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laporan ETS BDT 2019\n\n## Tahapan Penyelesaian\n1. Membuat container/instance setiap server. Server terdiri dari Web Server, DB Load Balancer, DB Server 1, DB Server 2, DB Server 3.\n    - Untuk pembuatan container/instance server tersebut dapat menggunakan docker-compose agar proses installasi lebih cepat\n    - DB Server (1 sampai 3) menggunakan image yang sama sehingga tidak perlu mendownload dependencies berulang-ulang\n\n2. Untuk DB Server (1 sampai 3) dipasang MySQL Server beserta plugin group replication\n    - Untuk mengecek apakah group replication berjalan atau tidak dapat menggunakan query berikut\n        ```sql\n        SELECT * FROM performance_schema.replication_group_members;\n        ```\n        ![check_group_replication](./assets/check_group_replication_members.jpg)\n\n3. Untuk DB Load Balancer menggunakan HAProxy sebagai load balancer untuk ketiga DB Server\n    - Untuk mengecek apakah service mysql berjalan atau tidak dapat dilakukan dengan cara melihat statistic page HAProxy di link `localhost:9201`\n        ![check_group_replication](./assets/haproxy_stats.jpg)\n    - HaProxy tidak bisa digunakan untuk mengecek status group replication\n    - Proxy DB Server dapat diakses melalui `localhost:3306` atau `127.0.0.1:3306`\n\n4. Untuk Web Server menggunakan Apache dan PHP\n    - Untuk koneksi database menggunakan konfigurasi berikut\n        ```php\n        DB_HOST=192.168.17.30       // IP HAProxy Server\n        DB_PORT=3306                // Port HAProxy Server\n        DB_DATABASE=reservasi\n        DB_USERNAME=haproxy_root\n        DB_PASSWORD=admin\n        ```\n    - Webserver dapat diakses melalui `localhost` atau `127.0.0.1`\n\n\n## Cara Menjalankan Service\n1. Lakukan build image untuk menginstall dependencies dan konfigurasi yang diperlukan\n    ```bash\n    docker-compose build\n    ```\n\n2. Untuk meng-create container dan menjalankannya dapat dilakukan dengan cara menjalankan perintah berikut\n    ```bash\n    # --compatibility digunakan agar dapat menggunakan versi file config docker-compose sebelumnya. Tujuannya untuk memberikan batasan/limit memory yang akan digunakan\n    docker-compose --compatibility up\n\n    # Untuk menjalankannya di background\n    docker-compose --compatibility up -d\n    ```\n    ![docker_compose_up](./assets/docker_compose_up.jpg)\n\n3. Untuk menghentikan salah satu server dapat dilakukan dengan cara\n    ```bash\n    # docker-compose stop nama_service\n    docker-compose stop web_server\n    ```\n\n4. Untuk menghapus seluruh service dapat dilakukan dengan cara\n    ```bash\n    docker-compose down\n    docker volume rm bdt_ets_web_server\n    docker volume rm bdt_ets_db_server1\n    docker volume rm bdt_ets_db_server2\n    docker volume rm bdt_ets_db_server3\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanantadwi13%2Fbdt_ets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanantadwi13%2Fbdt_ets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanantadwi13%2Fbdt_ets/lists"}