Will
    • 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
      • Invitee
      • No invitee
    • Publish Note

      Publish Note

      Everyone on the web can find and read all notes of this public team.
      Once published, notes can be searched and viewed by anyone online.
      See published notes
      Please check the box to agree to the Community Guidelines.
    • 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
    • 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 Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync 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
Invitee
No invitee
Publish Note

Publish Note

Everyone on the web can find and read all notes of this public team.
Once published, notes can be searched and viewed by anyone online.
See published notes
Please check the box to agree to the Community Guidelines.
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
# IPNI Spring 2025 Emergency Operational Stability Work ## How did we get here? IPNI has been in a 'keep the lights on' mode for the last 2.5 years. In the final year of bedrock, the team was steered away from work on the service. In the last 1.5 years, IPNI received an operational blue fund grant from PLFIF to cover capital costs of migrating from the cloud to cheaper servers, and for the ongoing operational cost of that operation - it did not include funding for time to develop the software stack - the agreement by IPNI was to "keep the service running *as is*." While this strategy has been sufficient for 2024, we have noticed significant degredation over the last months. This is due to a combination of several factors. We also are in a position with limited operational actions that can be taken to restore service quickly. * In March, a degraded disk was identified on the Berlin instance. The disk was replaced, but the decision was made at that point to flush the ZFS pool and re-ingest on the node. The ZFS healing of the data on the failing disk was not guaranteed, and the index on that machine had become bloated. One backlog software item is to support more effective cleanup of data from removed providers, but in the interim the operational strategy is to periodically task one instance with re-indexing. * In the same period, the access pattern has changed significantly. This has demanded constant tunning of the existing KV store which was originally designed for a different traffic pattern. Specifically: * with the growth of Spark suage, IPNI now has an access pattern with regular bursts of requests for un-cached CIDs. The configuration of caching and the index has not had time to attempt to optimize for this usage pattern. * Evolution of IPFS delegated routing and the retirement of large gateway caches has increased the IPFS load on IPNI. * An increase in providers who want low-latency IPFS-style publishing (many small advertisements) versus batched filecoin updates (fewer advertisements each representing ~32gb of data), has resulted in re-ingestion taking much longer. Following advertisement chains are fetched one-by-one, so when each advertisment has only a few CIDs but are very deep we're seeing this process able to stretch on for days or weeks to synchronize one of these providers. ## What do we do about it? ### Hardware refinement In the next two weeks, we will: 1. upgrade the cpu of our "2.5th / backup instance" into a full 3rd instance. 2. upgrade the memory in the 2nd instance to relieve pressure observed bottlenecking current database compaction. ### Provider Ingest Prioritization In the period from April 11th to April 19th, the secondary Indexer was stuck synchronizing 50 providers (the number of worker threads). Once these threads are allocated to providers with low network bandwidth or very long chains, the ingest process becomes rate limited by that network ingest speed. We see that the the server spent much of the past week at <20% utilization, waiting on receiving lists of CIDs from these providers. We can get the replica up to full-performance much faster by prioritizing providers with high bandwidth to better approximate a 'fair quality of service' between providers. We propose to: 1. update indexStar (the routing / translation server) to count which providers are being returned, so that the ordered list can be used for prioritization 2. Babysitting the Berlin instance re-ingestion to prioritize used providers to be able to switch to it once we can estimate it is at least 75% caught up. ### Investigation of mirroring failure One technique IPNI uses with an aim to speed up the process of re-indexing is to save advertisements seen by providers locally. When re-ingesting, these already seen chains can be read from disk, rather than over the network. As flagged above, this is not fully working. We see on the current re-ingest that this local store of advertisements has filled up 32TB of allocated space. While we have sufficient cache space between our instance, the operational work currently has each node use it's local pool for this cache, rather than having the instances share a pool. We need to next research if 1. there is a path to efficiently segment or otherwise share the pool between instances 2. we can expand the size of the pool in at least one of the instances to be large enough for the full cache and have all instances use that cache 3. there are ways to use the pool more efficiently. We believe that changes here will not be able to meaningfully improve the speed for resolving our current degredation, but is one of the factors leading to the current extended outage, and so a path to mitigation should be identified. ### 'Double Cursor Ingest' The most accessible additional capability we wish we had is for more flexibility in ingest. Ideally, new advertisements can be followed from startup, and separate from backlog ingest of historic advertisements. We see many queries focusing on 'recent' content. We believe that by having a new instance prioritizing content it sees published since startup, it can be used for offloading of queries, and thus reduce load on other instances within hours to days of startup. We estimate this at 2-3 weeks of engineering work. ## What do we need? ### Structure that supports prioritization of IPNI We cannot easily pay ourselves for our time, or prioritize needed work in the current structure. Unless things are visibly broken as they are now, our team members are dis-incentivized from spending time on IPNI instead of their day jobs. Breaking this down: 1. IPNI Does not have a budget to contract dedicated time for handling community requests, keeping up with changing workloads, software engineering, or much else 2. There is some (~$30k) of money remaining in the IPNI entity that we should have used for emergency contracting of time to mitigate these issues when they started last month. This has been hindered by: a. We were told that any use of these remaining funds would put the OIF bank account below it's minimum and we needed to figure out how to dissolve the entity, or wait for more money after requesting funding. this was the first time we learned of this additional 15% overhead on the allocated funds. b. PLFIF has proposed using the current ProPGF structure, but that will take at least a couple months to get a funding refresh to allow us to negotiate a changed structure.

Import from clipboard

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 is not available.
Upgrade
All
  • All
  • Team
No template found.

Create custom 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

How to use Slide mode

API Docs

Edit in VSCode

Install browser extension

Get in Touch

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
Upgrade to Prime Plan

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

No updates to save
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

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

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

      Syncing

      Push failed

      Push successfully