{"id":13413633,"url":"https://github.com/eduardonunesp/sslb","last_synced_at":"2026-01-25T06:03:20.508Z","repository":{"id":57496944,"uuid":"44497407","full_name":"eduardonunesp/sslb","owner":"eduardonunesp","description":"Golang Super Simple Load Balance","archived":false,"fork":false,"pushed_at":"2024-02-18T21:50:23.000Z","size":72,"stargazers_count":151,"open_issues_count":11,"forks_count":29,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-14T04:02:42.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduardonunesp.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}},"created_at":"2015-10-18T21:31:09.000Z","updated_at":"2025-06-12T15:43:00.000Z","dependencies_parsed_at":"2024-06-20T10:20:19.125Z","dependency_job_id":"699abab1-3614-4f72-89d0-cbfa08fc536d","html_url":"https://github.com/eduardonunesp/sslb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduardonunesp/sslb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardonunesp%2Fsslb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardonunesp%2Fsslb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardonunesp%2Fsslb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardonunesp%2Fsslb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardonunesp","download_url":"https://codeload.github.com/eduardonunesp/sslb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardonunesp%2Fsslb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28745836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-07-30T20:01:45.005Z","updated_at":"2026-01-25T06:03:20.491Z","avatar_url":"https://github.com/eduardonunesp.png","language":"Go","funding_links":[],"categories":["Networking","网络相关库","\u003cspan id=\"网络-networking\"\u003e网络 Networking\u003c/span\u003e","网络","網絡","Relational Databases"],"sub_categories":["Strings","暂未分类","Transliteration","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Uncategorized","音译","交流","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","高級控制台界面","高级控制台界面"],"readme":"# SSLB (Super Simple Load Balancer) ver 0.1.0\n\nIt's a Super Simple Load Balancer, just a little project to achieve some kind of performance.\n\n## Features\n * High availability (improving with time the speed)\n * Support to WebSockets\n * Monitoring the internal state (improving)\n * Really easy to configure, just a little JSON file\n\n## Next features\n * Manage configurations in runtime without downtime\n * Complete internal status and diagnostics\n * HTTP/2 support\n * Cache \n * HTTPS support\n \n If you have any suggestion don't hesitate to open an issue, pull requests are welcome too.\n\n## Install\n\nTo install type:\n\n```\ngo get github.com/eduardonunesp/sslb\n```\n\nDon't forget to create your configuration file `config.json` at the same directory of project and run it. You can use the command `sslb -c` to create an example of configuration file.\n\n\n## Usage\nType `sslb -h` for the command line help\n\n```\nsslb -h                                                                                                                                                              \nNAME:\n   SSLB (github.com/eduardonunesp/sslb) - sslb\n\nUSAGE:\n   sslb [global options] command [command options] [arguments...]\n\nVERSION:\n   0.1.0\n\nCOMMANDS:\n   status, s\tReturn the internal status\n   help, h\tShows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --verbose, -b\tactivate the verbose output\n   --filename, -f \tset the filename as the configuration\n   --help, -h\t\tshow help\n   --version, -v\tprint the version\n```\n\nAfter the configuration file completed you can type only `sslb -b` to start SSLB with verbose mode, that command will log the output from SSLB in console. That will print something like that:\n\n```\nsslb -b                                                                                                                                                               \n2015/10/25 22:58:33 Start SSLB (Server)\n2015/10/25 22:58:33 Create worker pool with [1000]\n2015/10/25 22:58:33 Prepare to run server ...\n2015/10/25 22:58:33 Setup and check configuration\n2015/10/25 22:58:33 Setup ok ...\n2015/10/25 22:58:33 Run frontend server [Front1] at [0.0.0.0:80]\n2015/10/25 22:58:34 Backend active [Backend 1]\n2015/10/25 22:58:34 Backend active [Backend 2]\n2015/10/25 22:58:34 Backend active [Backend 3]\n```\n\n## Configuration options\n\n* general:\n\t* maxProcs: Number of processors used by Go runtime (default: Number of CPUS)\n\t* workerPoolSize: Number of workers for processing request (default: 10)\n\t* gracefulShutdown: Wait for the last connection closed, before shutdown (default: true)\n\t* websocket: Ready for respond websocket connections (default: true)\n\t* rpchost: Address to expose the internal state (default: 127.0.0.1)\n\t* rpcport: Port to expose the internal state (default: 42555)\n\t\n* frontends:\n\t* name: Just a identifier to your front server (required)\n\t* host: Host address that serves the HTTP front (required)\n\t* port: Port address that serves the HTTP front (required)\n\t* route: Route to receive the traffic (required)\n\t* timeout: How long can wait for the result (ms) from the backend (default: 30000ms)\n\n* backends:\n\t* name: Just a identifier (required)\n\t* address: Address (URL) for your backend (required)\n\t* hearbeat: Addres to send Head request to test if it's ok (required)\n\t* hbmethod: Method used in request to check the heartbeat (default: HEAD)\n\t* inactiveAfter: Consider the backend inactive after the number of checks (default: 3)\n\t* activeAfter: COnsider the backend active after the number of checks (default: 1)\n\t* heartbeatTime: The interval to send a \"ping\" (default: 30000ms)\n\t* retryTime: The interval to send a \"ping\" after the first failed \"ping\" (default: 5000ms)\n\t\n### Example (config.json)\n\n```\n{\n    \"general\": {\n        \"maxProcs\": 4,\n        \"workerPoolSize\": 10,\n    },\n    \n    \"frontends\" : [\n        {\n            \"name\" : \"Front1\",\n            \"host\" : \"127.0.0.1\",\n            \"port\" : 9000,\n            \"route\" : \"/\",\n            \"timeout\" : 5000,\n            \n            \"backends\" : [\n                {\n                    \"name\" : \"Back1\",\n                    \"address\" : \"http://127.0.0.1:9001\",\n                    \"heartbeat\" : \"http://127.0.0.1:9001\",\n                    \"inactiveAfter\" : 3,\n                    \"heartbeatTime\" : 5000,\n                    \"retryTime\" : 5000\n                },{\n                    \"name\" : \"Back2\",\n                    \"address\" : \"http://127.0.0.1:9002\",\n                    \"heartbeat\" : \"http://127.0.0.1:9002\",\n                    \"inactiveAfter\" : 3,\n                    \"heartbeatTime\" : 5000,\n                    \"retryTime\" : 5000\n                }\n            ]\n        }\n    ]\n}\n```\n\n\n## LICENSE\nCopyright (c) 2015, Eduardo Nunes Pereira\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of sslb nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardonunesp%2Fsslb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardonunesp%2Fsslb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardonunesp%2Fsslb/lists"}