{"id":38941429,"url":"https://github.com/uxff/flexdrive","last_synced_at":"2026-01-17T15:53:21.747Z","repository":{"id":57518496,"uuid":"233238248","full_name":"uxff/flexdrive","owner":"uxff","description":"A flexible extending drive, distributed cloud storage system using gRPC and distributed election algorithm.","archived":false,"fork":false,"pushed_at":"2025-05-06T14:38:53.000Z","size":6490,"stargazers_count":28,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T15:52:16.451Z","etag":null,"topics":["distributed-storage","election-algorithm","golang","grpc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uxff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-01-11T13:43:40.000Z","updated_at":"2025-05-06T14:38:57.000Z","dependencies_parsed_at":"2023-12-15T08:28:43.096Z","dependency_job_id":"4b783b91-f647-4c01-a1ff-d2448e5b0415","html_url":"https://github.com/uxff/flexdrive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uxff/flexdrive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxff%2Fflexdrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxff%2Fflexdrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxff%2Fflexdrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxff%2Fflexdrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uxff","download_url":"https://codeload.github.com/uxff/flexdrive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxff%2Fflexdrive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["distributed-storage","election-algorithm","golang","grpc"],"created_at":"2026-01-17T15:53:21.089Z","updated_at":"2026-01-17T15:53:21.731Z","avatar_url":"https://github.com/uxff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexdrive\n\nEnglish | [中文](README.zhCN.md)\n\nA distributed cloud disk system.\n\ngolang gin framework is used in the back end, Bootstrap is used in the front end, and gRPC protocol is used for cluster communication.\n\nHas the following characteristics:\n\n- a. One node provides both web and gRPC storage services.\n- b. It can be expanded horizontally indefinitely by adding storage nodes in a distributed cluster. Theoretically, the space is unlimited.\n- c. A file is randomly distributed on at least three nodes to prevent file loss caused by single point of failure and improve service reliability.\n- d. The cluster uses distributed load balancing to upload and back up files to nodes with the least load.\n- e. The cluster uses Golang as the main development language, which is independent after compilation and can be deployed and run in container;\n- f. The gRPC communication protocol is used between clusters for heartbeat and node synchronization.\n- g. Provide a background management interface to meet content controllable requirements.\n\n\nCluster operation structure diagram:\n\n\u003cimg src=\"https://github.com/uxff/flexdrive/raw/master/static/images/clusters-arch1.png\"\u003e\n\n\u003cimg src=\"https://github.com/uxff/flexdrive/raw/master/static/images/clusters-arch2.png\"\u003e\n\n\nNode internal structure diagram:\n\n\u003cimg src=\"https://github.com/uxff/flexdrive/raw/master/static/images/clusters-arch3.png\"\u003e\n\nIt supports mysql for database, you can use sqlite instead.\n\n## Get Started\nPrepare your environment variables\n\n\n| Env Variables\t|Example\t|Description|\n|--:|--:|--:|\n|SERVEADMIN\t|127.0.0.1:10011\t|address  and port for administrators|\n|SERVECUSTOMER\t|127.0.0.1:10012\t|address and port for guests|\n|SERVECLUSTER\t|127.0.0.1:10013\t|address and port for cluster communication|\n|DATADSN\t|mysql://user:pass@tcp(127.0.0.1:3306)/flexdrive?charset=utf8mb4\t|DNS of database|\n|STORAGEDIR\t|./data/\t|physical file storage|\n\nCompiling:\n```\n$ go build -o flexdrive cmd/node/main.go\n```\n\nRun by single node:\n```\n$ SERVEADMIN=127.0.0.1:10011 SERVECUSTOMER=127.0.0.1:10012 SERVECLUSTER=127.0.0.1:10013 CLUSTERMEMBERS=127.0.0.1:10013,127.0.0.1:10023,127.0.0.1:10033 DATADSN='sqlite3://./flexdrive.db'  STORAGEDIR=./data/ ./main\n```\n\n\nRun by multing nodes:\n```\nsh runcluster.sh\n```\n\nVisit admin web via: http://127.0.0.1:10011 \n  \nVisit guest web via: http://127.0.0.1:10012\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxff%2Fflexdrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuxff%2Fflexdrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxff%2Fflexdrive/lists"}