~egtann/binp

049875ea6435fceef785c85c6aac166183a38771 — Evan Tann 21 days ago 77b81d0
update readme
1 files changed, 54 insertions(+), 45 deletions(-)

M README.md
M README.md => README.md +54 -45
@@ 28,60 28,69 @@ For example, this could be our services.json file:

```json
{
	"services": {
		"openbsd": {
			"app_1": {
				"cpu": 2,
				"ram": "4 GB",
				"disk": "100 MB",
				"count": 4,
				"net": {
					"mbps": 500,
					"ports": [3000, 3001]
				}
			},
			"app_2": {
				"cpu": 1,
				"ram": "2 GB",
				"disk": "50 MB",
				"count": 2,
				"net": {
					"mbps": 100,
					"ports": [3002]
				}
			},
			"postgres": {
				"cpu": 6,
				"ram": "32 GB",
				"disk": "1 TB",
				"count": 2,
				"net": {
					"ports": [3002]
				}
	"requirements": {
		"app_1": {
			"cpu": 2,
			"ram": "4 GB",
			"disk": "100 MB",
			"net": {"ports": [3000]}
		},
		"app_2": {
			"ram": "2 GB",
			"disk": "50 MB",
			"net": {"ports": [4000]}
		},
		"app_3": {
			"net": {
				"mbps": 1000,
				"ports": [3000, 4000]
			}
		},
		"debian": {
			"redis": {
				"cpu": 1,
				"ram": "2 GB",
				"disk": "4 GB",
				"count": 1
		"postgres": {
			"cpu": 6,
			"ram": "32 GB",
			"disk": "1 TB",
			"net": {
				"mbps": 100,
				"ports": [5432]
			}
		},
		"redis": {
			"cpu": 1,
			"ram": "2 GB",
			"disk": "4 GB"
		}
	},
	"boxes": {
	"counts": {
		"openbsd": {
			"cpu": 12,
			"ram": "32 GB",
			"disk": "1 TB",
			"net": {"mbps": 1000}
			"app_1": 4,
			"app_2": 2,
			"app_3": 2,
			"postgres": 2
		},
		"debian": {
			"cpu": 1,
			"ram": "4 GB",
			"disk": "10 GB",
			"net": {"mbps": 1000}
			"redis": 1
		}
	},
	"providers": {
		"provider": {
			"openbsd": {
				"machineType": "type1",
				"disk": "1 TB",
				"image": "openbsd.tar.gz",
				"net": {"mbps": 1000}
			},
			"debian": {
				"machineType": "type2",
				"disk": "10 GB",
				"image": "debian.tar.gz",
				"net": {"mbps": 1000}
			}
		}
	},
	"machineTypes": {
		"type1": {"cpu": 12, "ram": "32 GB"},
		"type2": {"cpu": 1, "ram": "4 GB"}
	}
}
```