Oli Evans
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 🌈 IPFS Bifrost - 2019 Q4 - Objectives and Key Results _What is the main thing?_ - Provide actionable insights to IPFS developers - Provide a great service to the community - Be safe, observable, reliable, happy & open. ## IPFS infrastracture informs and improves go-ipfs development - P0 traffic is mirrored to staging gateway running latest go-ipfs - P1 all devs have access to ipfs logs from production and staging infrastructrure - P1 nightly and on-demand pprof profiles from all nodes are published to a shared repo - P2 bifrost team identify 5 perfomance issues with go-ipfs ## IPFS infrastructure is stable and scales to meet demand - P0 2 preload/delegate node are provisioned, monitored and documented - companion is in brave now, so we need to ready for increased usage from js-ipfs - P1 4 new DNS Bootstrap nodes are provisioned, monitored, and documented. - dnsaddr bootstrap nodes are in the config but not yet deployed. - P1 Ansible tower manages our deployments - Running ansible from CI gets us so far, but will cause friction as preload/bootstrappers are brought into the bifrost-infra - P2 8 Solarnet Bootstrap nodes are rebuilt and monitored or decommissioned. - they are currently held together by systemd restarts. - P2 Cluster nodes ansible is merged to bifrost-infra and monitoring is consistent with the gateways. ## Our metrics are reliable - P0 We have seperate metrics for our websites and gateway traffic - P1 PromQL for Gateway Service Level Indicators (SLIs) dashboard is version controlled and reviewed by 4 people - We have too many grafana dashbords, and some report the same stats differently. PromQL is complex; we need to audit and reduce the number of dashboard, to have clear signals from our systems. - P1 We fix the netdata sync errors (causing erroneous metrics spikes) ## Our alerts are actionable - P1 Service Level Objectives thresholds (SLOs) are researched, agreed and alerted on. - P2 A runbook is published with initial triage steps - P2 opsgenie / responsible human rota is defined ## The community knows what to expect from the ipfs.io services - P0 Gateway usage policy is published - P1 We write the section on gateways (local vs ipfs.io) for the ipfs docs. # 2020 goals - average response time for content not on the gateways is < 30s - average response time for on the gateways is < 300ms - extract our websites from our gatway - seperate domains for project websites and ipfs.io gateway - gateway timeout page - public metrics dashboard - open source our ansibles _carefully_, and reboot ipfs/infra ## Questions - Alerting - are we the first to know about failures? - who should respond and how? - Metrics & trends - can we see problems coming? - can we find the cause of failures? - can we provide useful reports to the community? - Experiments - How can we best help go-ipfs improve? - Do we **know** how go-ipfs config options affect the gateways - Do we have a good idea on how to run experiments so they give meaningful results, and the information is retained and compounds over time? - Safety - Are we protected from operator error taking down key infrastructure - Are secrets secure - Is it easy on and offboard new operators - Performance - Do we know how fast the gateways are, and how to make the go faster? (*sic* this is deliberately un-nuanced to prompt discussion.) - Reliability - Do we know how reliable the gatways are and how to make them more reliable - Do we know how reliable the gateway infrastructure is vs how reliable go-ipfs is - Technial Debt - Do we have peer-reviewed auto-deploy process for the Preloaders, bootstrappers, dht boosters, *-star libp2p services - Do we have metrics and alerting for the above? - that we trust? _These are to prompt thinking about our OKRs... I think the answer for most of them is negative right now._ ## Suggested High level key results from IPFS org level Q4 OKR report _Please add your thoughts on these_ [P0] IPFS gateway/pinbots/clusters/preload nodes are ready to 10x scale with great QoS - Entire team experts at using SLI dashboard to diagnose network changes / outages and respond appropriately - ∴ Some of the team need to be experts in promQL and SLI definition - ∴ We all need to train to understand how to interpret the SLI graphs - ∴ We need a shared understanding of what our SLIs are and why those numbers are chosen - ∴ We need actionable alerting on our SLIs - ∴ We need a defined "custodian of the SLIs" rota... who will wake up and under what conditions to deal with alerts - ∴ We need a runbook of appropriate first responses to various failure conditions - IPFS preload nodes prepared to handle traffic from companion launch within Brave (50K users?) - ∴ We need to bring the preload nodes config and monitoring into bifrost-infra - ∴ We need to load test to demonstrate readyness - Gateway canary testing IPFS master vs prod behavior / CPU / response time / etc - ∴ We need a staging environment - Launch external communication of gateway purpose, status, SLOs, and terms of use - ∴ We need to define our terms of use and SLOs - ∴ We need to publish our status. Become observable. - - “Chaos monkey” (or similar) configured to run on infra and a week of emergency preparedness testing (if various services fail/spike, how do we maintain QoS?) scheduled for Q1 olizilla: "chaos monkey" & spinnaker would be nice to shoot for, but i feel like we have a load of tidying up for the bootstraps and the preloads etc. before moving the house again. ## Your thoughts... - [P0] Preloaders: - Migrate provisioning to Ansible - Are the preloaders hard-coded anywhere else other than https://github.com/ipfs/js-ipfs/blob/master/src/core/runtime/config-browser.js#L20-L25 - olizilla: also here https://github.com/ipfs/js-ipfs/blob/cf38aead2b0cb0b5f269daf265a2b868c50a81f8/src/core/index.js#L50-L56 - olizilla: related, the delegate nodes are offered up to the public in the docs here https://github.com/ipfs/js-ipfs/blob/e1c214f55ffacc0277cf73231476c50760923d80/README.md#configuring-delegate-routers - How can we achieve load balancing if `node0.preload.ipfs.io` and `node1.preload.ipfs.io` are hard-coded - Current boxes (8core, 32GB) are CPU-bound: `21:08:57 up 204 days, 21:23, 1 user, load average: 14.52, 11.04, 9.31` --- - seperating the websites - 4 prod services, low touch, docker images - bootstrappers are distributed. we dont have to deal with bird - bgp is perfect for gateways... - dns libs are the worst. - bootstrappers have hardcoded ip addresses - dns/foobar/ - roll out pre-computed bootstrappers and preloaders - we should use them. - get away from the hard coded ips - ansibles first - mtail? we have multiple prometheuses... migrate the boostrappers - provsn - preload & bootstappers - we have to preserve the ip preloaders - bootstrappers - stuff get cached giving them pprof is dope go-ipfs was cpu bound ]s

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully