{"id":24511122,"url":"https://github.com/libraries/muta_aws_fabric","last_synced_at":"2025-03-15T09:43:19.697Z","repository":{"id":51582507,"uuid":"247058506","full_name":"libraries/muta_aws_fabric","owner":"libraries","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T21:33:10.000Z","size":102,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T00:38:28.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/libraries.png","metadata":{"files":{"readme":"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}},"created_at":"2020-03-13T11:42:53.000Z","updated_at":"2020-06-19T08:41:45.000Z","dependencies_parsed_at":"2023-01-26T09:16:03.067Z","dependency_job_id":null,"html_url":"https://github.com/libraries/muta_aws_fabric","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libraries%2Fmuta_aws_fabric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libraries%2Fmuta_aws_fabric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libraries%2Fmuta_aws_fabric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libraries%2Fmuta_aws_fabric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libraries","download_url":"https://codeload.github.com/libraries/muta_aws_fabric/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713393,"owners_count":20335566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-01-22T00:36:26.405Z","updated_at":"2025-03-15T09:43:19.676Z","avatar_url":"https://github.com/libraries.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Muta aws fabric\n\n# Usage\n\nFirst, initial the environment:\n\n```sh\n$ mkdir -p ./bin/develop\n$ cp ./res/config.toml ./bin/develop\n$ cp xxx/id_rsa ./bin/develop\n$ cp xxx/id_rsa.pub ./bin/develop\n```\n\n```sh\n# clone the muta repo, switch to your branch or commit at /src\n$ git clone https://github.com/nervosnetwork/muta.git\n$ vim ./bin/develop/config.toml # replace the muta path in config file\n\n$ export CONFIG=./bin/develop/config.toml\n# deploy muta in one line. If execute this command twice, the previous chain will be free.\n$ py src/main.py muta\n# stop the chain\n$ py src/main.py muta_remote_kill\n```\n\ncommand `muta` is an aggregated command, it will execute a subcommand (you can execute it separately):\n\n- `muta_build_binary`\n- `muta_build_config`\n- `muta_deploy_binary`\n- `muta_remote_run`\n\nYou can also use the `muta_remote_kill` command to kill all muta processes.\n\nFor easy machine management, there is a powerful command `aws_bash`, it will execute every command you input to every machine:\n\n```sh\n$ py src/main.py aws_bash\n# install curl on all boxes\n\u003e apt install -y curl\n```\n\n# Telnet: network infomation between nodes\n\n```sh\n$ py src/main.py telnet_build_binary\n$ py src/main.py telnet_deploy\n$ py src/main.py telnet_server_run\n$ py src/main.py telnet_monitor\n```\n\nThe script will print the speed and delay between any two nodes.\n\n# FD\n\nTips for how to set file descriptions.\n\n```sh\n$ sudo bash -c 'echo -n \"fs.file-max = 65535\" \u003e\u003e /etc/sysctl.conf'\n$ sudo bash -c 'echo -n \"* soft  nofile 65535\" \u003e\u003e /etc/security/limits.conf'\n$ sudo bash -c 'echo -n \"* hard nofile 65535\" \u003e\u003e /etc/security/limits.conf'\n\n$ sysctl -p\n$ cat /proc/sys/fs/file-max\n```\n\n```sh\n$ ls -l /proc/pid/fd/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibraries%2Fmuta_aws_fabric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibraries%2Fmuta_aws_fabric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibraries%2Fmuta_aws_fabric/lists"}