Skip to content
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

feat(anvil): be able to specify a prefix path for temp disk storage #3512

Open
Tracked by #8269
kahuang opened this issue Oct 18, 2022 · 5 comments
Open
Tracked by #8269

feat(anvil): be able to specify a prefix path for temp disk storage #3512

kahuang opened this issue Oct 18, 2022 · 5 comments
Assignees
Labels
C-anvil Command: anvil T-feature Type: feature
Milestone

Comments

@kahuang
Copy link

kahuang commented Oct 18, 2022

Component

Anvil

Describe the feature you would like

When anvil state grows, it persists it temporarily to disk. I'd like to be able to specify a prefix path for the directory that gets created by anvil for this state.

Additional context

I am running Anvil in the cloud, and want to attach a persistent disk to the instance and mount it at the path anvil will use for storing state. Because it's a random directory each time, there's no way for me to programatically mount my disk at that location before anvil starts.

@kahuang kahuang added the T-feature Type: feature label Oct 18, 2022
@gakonst
Copy link
Member

gakonst commented Oct 19, 2022

@mattsse PTAL^

@mattsse mattsse self-assigned this Oct 19, 2022
@mattsse
Copy link
Member

mattsse commented Oct 19, 2022

Does this also concern the RPC cache dir @kahuang ?

@kahuang
Copy link
Author

kahuang commented Oct 19, 2022

Anywhere that disk space can grow unbounded!

@rkrasiuk rkrasiuk added the C-anvil Command: anvil label Oct 19, 2022
@kahuang
Copy link
Author

kahuang commented Nov 4, 2022

Actually after reading the code, it seems like this always mounts at /tmp then generate a random filename.Although it may be nice to be able to specify a dir specifically for this data: https://docs.rs/tempdir/latest/tempdir/struct.TempDir.html

Not high pri IMO

@emilianobonassi
Copy link

I need it too to be able to restart a session from a specific state.

@zerosnacks zerosnacks added this to the v1.0.0 milestone Jul 26, 2024
@zerosnacks zerosnacks changed the title Be able to specify a prefix path for temp disk storage feat(anvil): be able to specify a prefix path for temp disk storage Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-feature Type: feature
Projects
No open projects
Status: Todo
Development

No branches or pull requests

6 participants