splaplapla / procon_bypass_man_cloud

A server for https://github.com/splaplapla/procon_bypass_man
https://pbm-cloud.herokuapp.com
1 stars 0 forks source link
rails

README

Run rspec Run linters

機能

procon_bypass_manを登録する方法

デバイスIDを https://pbm-cloud.jiikko.com に登録する必要があります。

ProconBypassMan.configure do |config|
  # ...
  config.api_servers = 'https://pbm-cloud.jiikko.com' # これを追加する
  # ...
end

Development

インストール方法

Mac

brew install imagemagick mysql@8.0 redis
bundle config set --local without production
bundle install

docker

docker compose build
docker compose run --rm web bin/rake db:create db:migrate
docker compose run --rm web bin/rake db:seed
docker compose run --rm web yarn
docker compose up

デバッグ

ProconPerformanceMetric::WriteService.new.execute(
  timestamp: "2022-07-16 12:21:00+09:00",
  time_taken_max: "0.168",
  time_taken_p50: "0.015",
  time_taken_p95: "0.016",
  time_taken_p99: "00.24",
  write_time_max: "0.168",
  write_time_p50: "0.001",
  read_time_max: "0.168",
  read_time_p50: "0.012",
  interval_from_previous_succeed_max: "0.168",
  interval_from_previous_succeed_p50: "0.015",
  external_input_time_max: "0.015",
  read_error_count: "0",
  write_error_count: "491",
  load_agv: "0.49-0.5-0.55",
  gc_count: 3,
  gc_time: 1.1,
  device_uuid: 'd1',
  succeed_rate: 1,
  collected_spans_size: 4422,
)

TODO