mouryou

command module
v0.0.0-...-764d95b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 10 Imported by: 0

README

mouryou

Requirements
Installation
$ git clone git://github.com/sai-lab/mouryou.git
$ cd mouryou
$ make gom link
$ make build
$ sudo bin/mouryou
Configuration

~/.mouryou.json

{
  "develop_log_level": 0,
  "timeout": 1,
  "sleep": 30,
  "wait": 30,
  "restoration_time": 30,
  "is_weight_change": true,
  "use_hetero": false,
  "is_adjust_server_num": true,
  "use_operating_ratio": false,
  "use_throughput": true,
  "influxdb_addr": "http://localhost",
  "influxdb_port": "8086",
  "influxdb_user": "root",
  "influxdb_passwd": "password",
  "influxdb_serverdb": "server_log",
  "origin_machine_names": [
    "origin-01",
    "origin-02"
  ],
  "always_running_machines": [
    "mirror-01",
    "mirror-02"
  ],
  "start_machine_ids": [
    1,
    2
  ],
  "web_socket": {
    "origin": "http://0.0.0.0/",
    "url": "ws://0.0.0.0:8000/ws"
  },
  "cluster": {
    "load_balancer": {
      "name": "haproxy",
      "virtual_ip": "192.168.11.11",
      "load_balancing_algorithm": "wlc",
      "operating_ratio_algorithm": "ServerNumDependSpike",
      "operating_ratio_threshold_out": 0.8,
      "operating_ratio_threshold_in": 0.1,
      "operating_ratio_margin": 0.05,
      "operating_ratio_scale_out_interval": 2,
      "operating_ratio_scale_in_interval": 6,
      "operating_ratio_dynamic_threshold_diff": 0.2,
      "operating_ratio_dynamic_threshold": {
        "0.1": [
          0,
          30
        ],
        "0.3": [
          30,
          50
        ],
        "0.5": [
          50,
          70
        ],
        "0.6": [
          70,
          90
        ],
        "0.7": [
          90,
          100
        ]
      },
      "throughput_algorithm": "MovingAverageV1.2",
      "throughput_moving_average_interval": 3,
      "throughput_scale_in_ratio": 0.1,
      "throughput_scale_out_ratio": 0.5,
      "throughput_scale_out_threshold": 1,
      "throughput_scale_out_time": 5,
      "throughput_scale_in_threshold": 3,
      "throughput_scale_in_time": 5,
      "use_throughput_dynamic_threshold": true,
      "throughput_dynamic_threshold": {
        "0.3": [
          0,
          30
        ],
        "0.5": [
          30,
          60
        ],
        "0.7": [
          60,
          80
        ],
        "0.9": [
          80,
          100
        ]
      }
    },
    "vendors": [
      {
        "name": "azure",
        "virtual_machines": {
          "origin-01": {
            "id": 1,
            "name": "origin-01",
            "host": "192.168.11.01",
            "operation": "booted up",
            "unit_time": 30,
            "unit_cost": 10,
            "throughput_upper_limit": 200,
            "basic_weight": 10,
            "weight": 10
          },
          "origin-02": {
            "id": 2,
            "name": "origin-02",
            "host": "192.168.11.02",
            "operation": "booted up",
            "unit_time": 30,
            "unit_cost": 10,
            "throughput_upper_limit": 200,
            "basic_weight": 10,
            "weight": 10
          },
          "mirror-01": {
            "id": 3,
            "name": "mirror-01",
            "host": "192.168.11.03",
            "operation": "booted up",
            "unit_time": 30,
            "unit_cost": 10,
            "throughput_upper_limit": 200,
            "basic_weight": 10,
            "weight": 10
          },
          "mirror-02": {
            "id": 4,
            "name": "mirror-02",
            "host": "192.168.11.04",
            "operation": "booted up",
            "unit_time": 30,
            "unit_cost": 10,
            "throughput_upper_limit": 200,
            "basic_weight": 10,
            "weight": 10
          },
          "mirror-03": {
            "id": 5,
            "name": "mirror-03",
            "host": "192.168.11.05",
            "operation": "shutted down",
            "unit_time": 30,
            "unit_cost": 10,
            "throughput_upper_limit": 200,
            "basic_weight": 10,
            "weight": 10
          }
        }
      }
    ]
  }
}
License

mouryou is released under the MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL