-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Datastore metrics optional during init, off by default #10767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
Comments
gammazero
added a commit
that referenced
this issue
Apr 22, 2025
When ipfs is initialized, the datastore metrics wrapper is not configured by default as it previously was. To enable datastore metrics during initialization, specifying the appropriate `--profile` option. To enable datastore metrics tracking wrapper, initialize with datastore profile name + "-measure" suffix. For example: ``` ipfs init --profile flatfs-measure ``` Closes #10767
gammazero
added a commit
that referenced
this issue
Apr 30, 2025
When ipfs is initialized, the datastore metrics wrapper is not configured by default as it previously was. To enable datastore metrics during initialization, specifying the appropriate `--profile` option. To enable datastore metrics tracking wrapper, initialize with datastore profile name + "-measure" suffix. For example: ``` ipfs init --profile flatfs-measure ``` Closes #10767
gammazero
added a commit
that referenced
this issue
Apr 30, 2025
When ipfs is initialized, the datastore metrics wrapper is not configured by default as it previously was. To enable datastore metrics during initialization, specifying the appropriate `--profile` option. To enable datastore metrics tracking wrapper, initialize with datastore profile name + "-measure" suffix. For example: ``` ipfs init --profile flatfs-measure ``` Closes #10767
lidel
added a commit
that referenced
this issue
Apr 30, 2025
* datastore: metrics optional and off by default When ipfs is initialized, the datastore metrics wrapper is not configured by default as it previously was. To enable datastore metrics during initialization, specifying the appropriate `--profile` option. To enable datastore metrics tracking wrapper, initialize with datastore profile name + "-measure" suffix. For example: ``` ipfs init --profile flatfs-measure ``` Closes #10767 * fix sharness tests for new datastore dafaults * Add sharness test to check metrics added by flatfs-measure profile * Document updated metrics in changelog * update config doc with new profiles * docs(changelog): separate section * initialize non-measure pebbleds with FormatMajorVersion config * docs: fix typos, add docs link --------- Co-authored-by: gammazero <[email protected]> Co-authored-by: Marcin Rataj <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
Checklist
Description
When initializing a new instance, enabling datastore metrics should be optional. If not specified, the default should be to have metrics off. Metrics should be off by default as they have a minor performance impact and result in a more complex config.
-metrics
boolean flag toipfs init
command.measure
datastore for any datastore.If
-measure=true
is specified duringipfs init
then the datastore config will be as it is today, with each datastore having a parentmeasure
type of datastore in itsspec
config.If
-measure=false
is specified or the flag is not provided duringipfs init
then each datastore in the datastore config will not have parentmeasure
type of datastore, and instead just the datastore will be configured with nochild
in itsspec
config.The text was updated successfully, but these errors were encountered: