-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: push canister metrics to cycle monitoring infrastructure (#191)
* build: bump serde * build: add rust toolchain yaml to declaritively specify rust toolchain to use * refactor: clean up all warnings from Clippy * refactor: move know principals to configuration field * chore: intermediate save * docs: move docs to their own folder * chore: intermediate save. test repo * feat: implement pinging an external endpoint to export canister metrics * chore: canister deploy with quill
- Loading branch information
1 parent
212da69
commit 0243a62
Showing
87 changed files
with
747 additions
and
699 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Current Architecture | ||
|
||
```mermaid | ||
flowchart | ||
UserClient[User Client Device] | ||
UserIndex[(User Index)] | ||
IndividualUserCanister[(Individual User <br>Canister)] | ||
ContentIndex[(Content Index)] | ||
GlobalConfiguration[(Global Configuration)] | ||
DataBackup[(Data Backup)] | ||
UserIndex -- 1 --> IndividualUserCanister | ||
IndividualUserCanister -- n --> UserIndex | ||
IndividualUserCanister -- sync new <br> posts --> ContentIndex | ||
IndividualUserCanister -- backup before <br> upgrades --> DataBackup | ||
UserClient -- get provisioned <br> individual canister --> UserIndex | ||
UserClient -- get content --> ContentIndex | ||
UserClient -- talk to own <br> and others' canisters --> IndividualUserCanister | ||
``` | ||
|
||
## Upcoming Architecture | ||
|
||
```mermaid | ||
flowchart | ||
PlatformOrchestrator[Platform Orchestrator] | ||
CanisterRegistry[(Canister Registry)] | ||
UserClient[User Client Device] | ||
UserIndex[(User Index)] | ||
IndividualUserCanister[(Individual User <br>Canister)] | ||
ContentIndex[(Content Index)] | ||
subgraph OrchestratorSubnet[Orchestrator Subnet] | ||
PlatformOrchestrator <-- 1 --> CanisterRegistry | ||
end | ||
subgraph UserSubnet[User Subnet] | ||
PlatformOrchestrator --> UserIndex | ||
UserIndex -- 1 --> IndividualUserCanister | ||
IndividualUserCanister -- n --> UserIndex | ||
IndividualUserCanister <-- sync new <br> posts --> ContentIndex | ||
UserClient -- get provisioned <br> individual canister --> UserIndex | ||
UserClient -- get content --> IndividualUserCanister | ||
UserClient -- talk to own <br> and others' canisters --> IndividualUserCanister | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Canister side | ||
|
||
- Short term - Adopt the ic-stable-structures to leverage stable memory for data storage. Should tentatively reduce our costs in half essentially cutting upgrade cost to near zero | ||
- Short term - Implement a active canister reclamation solution that reclaims fleet canisters from idle users who've abandoned their accounts and reuses them for new signups. Archive existing users data to a archival solution and restore to a new canister on future activation. Should also significantly reduce costs, letting us reclaim 40-70% of our approximate fleet on a regular basis. | ||
- Long term - Invest in running nodes and become node providers essentially being able to pay for cycles with IC earned, in a way hosting our app on our own hardware, IC providing the software stack | ||
- Long term - Stake significant portions of the SNS DAO treasury into neurons and using the maturity from those neurons to pay for cycles. | ||
|
||
# REDUCED CYCLE COSTS | ||
|
||
- Sustained use discounts | ||
- Subnet rentals with lower cycle costs per the entire subnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[toolchain] | ||
channel = "stable" | ||
profile = "default" | ||
targets = [ "wasm32-unknown-unknown" ] |
89 changes: 0 additions & 89 deletions
89
scripts/canisters/local_sns_deploy/upgrade_all_canisters.sh
This file was deleted.
Oops, something went wrong.
Submodule sns
updated
from a49bff to c1490e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.