baxx

ssh register@ui.baxx.dev

  • 所有者: jackdoe/baxx
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

baxx.dev

check it out ssh register@ui.baxx.dev

[ work in progress ]

backup service

(also i am learning how to build a product without a website haha)

screenshots

┌───────────────────────────────────────────────┐
│ │
│ ██████╗ █████╗ ██╗ ██╗██╗ ██╗ │
│ ██╔══██╗██╔══██╗╚██╗██╔╝╚██╗██╔╝ │
│ ██████╔╝███████║ ╚███╔╝ ╚███╔╝ │
│ ██╔══██╗██╔══██║ ██╔██╗ ██╔██╗ │
│ ██████╔╝██║ ██║██╔╝ ██╗██╔╝ ██╗ │
│ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ │
│ │
│ Storage 10G │
│ Trial 1 Month 0.1 EUR │
│ Subscription: 5 EUR per Month │
│ Availability: ALPHA │
│ │
│ Contact Us: │
│ * Slack https://baxx.dev/join/slack
│ * Google Groups https://baxx.dev/join/groups
│ │
│ E-mail │
│ │
│ Password │
│ │
│ Confirm Password │
│ │
│ │
│ Registering means you agree with │
│ the terms of service! │
│ │
│ [Register] [Login] │
│ │
│ [Help] [What/Why/How] [Terms Of Service] │
│ │
│ [Quit] │
└───────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ │
│ ██████╗ █████╗ ██╗ ██╗██╗ ██╗ │
│ ██╔══██╗██╔══██╗╚██╗██╔╝╚██╗██╔╝ │
│ ██████╔╝███████║ ╚███╔╝ ╚███╔╝ │
│ ██╔══██╗██╔══██║ ██╔██╗ ██╔██╗ │
│ ██████╔╝██║ ██║██╔╝ ██╗██╔╝ ██╗ │
│ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ │
│ │
│ │
│ Email: example@example.com
│ Verification pending. │
│ Please check your spam folder. │
│ │
│ Subscription: │
│ Activate at https://baxx.dev/sub/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
│ │
│ Refreshing.. - │
│ │
│ [█Help] [Resend Verification Email] [Quit] │
└──────────────────────────────────────────────────────────────────────────┘

who watches the watchers

the current baxx infra progress is

2 machines, each running only docker and ssh

[ b.baxx.dev ]

  • ssh
  • docker
    • postgres-master
    • nginx + letsencrypt
    • who watches the watchers [?job]
    • run notification rules [?job]
    • process email queue [?job]
    • collect memory/disk/mdadam stats [privileged] [?job] (priv because mdadm)
    • baxx-api
    • judoc [localhost]
    • scylla [privileged] (priv because of io tunning)

[ a.baxx.dev ]

  • ssh
  • docker
    • postgres-slave
    • nginx + letsencrypt
    • who watches the watchers [?job]
    • process email queue [?job]
    • collect memory/disk/mdadam stats [privileged] [?job] (priv because mdadm)
    • baxx-api
    • judoc [localhost]
    • scylla [privileged] (priv because of io tunning)

as you can see both machines are in the scylla cluster, and both of
them are sending the notification emails (using select for update locks)
and only one of them is running the notification rules.

I have built quite simple yet effective monitoring system for baxx.

Each process with [?job] tag is something like:
(using ? because of daemon)

for {
work
sleep X
}

What I did is:

setup("monitoring key", X+5)
for {
work
tick("monitoring key")
sleep X
}

Then the 'who watches the watchers' programs check if "monitoring key"
is executed at within X+5 seconds per node(), and if not they send
slack message

The 'who watches the watchers' then sends notifications (both watchers
send notifications on their own, so i receive the notification twice
but that is ok)

The watchers themselves also use the system, so if one of them dies,
the other one will send notification.

testing

all the ✓ checks are tested (manually) and the alerts are performing
really good

shut down postgres

  • ✓ shutdown postgres and see if notifications are sent

shut down one machine

  • ✓ aa.baxx.dev
  • ✓ bb.baxx.dev

mdadm

  • ✓ make it fail
    mdadm -f /dev/md2 /dev/nvme1n1p3

  • ✓ wait for panic message

  • ✓ remove the disk
    mdadm --remove /dev/md2 /dev/nvme1n1p3

  • ✓ add the disk back
    mdadm --add /dev/md2 /dev/nvme1n1p3

  • ✓ wait to see it is acknowledged

works really nice

test disk thresh

  • ✓ start the status tool with with 1% disk threshold
    and wait for alert

test memory thresh

  • start the status tool with with 1% memory threshold
    and wait for alert

test health of baxx api

  • query /status which should
    • query postgres
    • query judoc

主要指标

概览
名称与所有者jackdoe/baxx
主编程语言Go
编程语言Go (语言数: 3)
平台
许可证Other
所有者活动
创建于2019-02-26 22:06:39
推送于2020-03-23 08:13:25
最后一次提交2020-03-23 09:13:24
发布数0
用户参与
星数136
关注者数6
派生数3
提交数415
已启用问题?
问题数2
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?