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

How to Price your Resources #153

Open
Normalnoise opened this issue Sep 25, 2024 · 0 comments
Open

How to Price your Resources #153

Normalnoise opened this issue Sep 25, 2024 · 0 comments

Comments

@Normalnoise
Copy link
Collaborator

Normalnoise commented Sep 25, 2024

FCP Resource Pricing Configuration (v0.6.5 and above)

Starting from version v0.6.5, FCP can set the price of resources. The specific steps are as follows:

1. Generate the pricing config(Located at $CP_PATH/price.toml):

computing-provider --repo <YOUR_CP_PATH> price generate

2. Customize your resource prices

vi $CP_PATH/price.toml

example:

TARGET_CPU=""           # SWAN/thread-hour
TARGET_MEMORY=""        # SWAN/GB-hour
TARGET_HD_EPHEMERAL=""  # SWAN/GB-hour
TARGET_GPU_DEFAULT=""   # SWAN/Default GPU unit per hour
TARGET_GPU_3080=""      # SWAN/3080 GPU unit per hour

3. View the configured price information:

computing-provider --repo <YOUR_CP_PATH> price view

CP Hardware Price Info:

TARGET_CPU:             1 SWAN/thread-hour
TARGET_MEMORY:          2 SWAN/GB-hour
TARGET_HD_EPHEMERAL:    3 SWAN/GB-hour
TARGET_GPU_DEFAULT:     7 SWAN/Default GPU unit per hour
TARGET_GPU_3080:        8 SWAN/GPU unit per hour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant