-
Notifications
You must be signed in to change notification settings - Fork 231
replace pricing calculator with compute table #1198
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9079c03
replace pricing calculator with compute table
carlosabadia 7da55d8
Merge branch 'main' into carlos/add-compute-table
Alek99 9501e90
Pricing + Billing Update
b321b7e
Quickstart
c460601
Fix comments
ded2f53
Merge branch 'main' into carlos/add-compute-table
Alek99 0927503
Fix spelling
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| .states | ||
| **/*.db | ||
| **/*.pyc | ||
| **/*.swp | ||
|
|
||
File renamed without changes.
This file contains hidden or 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,57 @@ | ||
| ```python exec | ||
| import reflex as rx | ||
| from reflex_image_zoom import image_zoom | ||
| from pcweb.pages.docs import hosting | ||
| from pcweb.pages import docs | ||
| from pcweb.styles.styles import get_code_style, cell_style | ||
| ``` | ||
|
|
||
| # App | ||
|
|
||
| In Reflex Cloud an "app" (or "application" or "website") refers to a web application built using the Reflex framework, which can be deployed and managed within the Cloud platform. | ||
|
|
||
| You can deploy an app using the `reflex deploy` command. | ||
|
|
||
| There are many actions you can take in the Cloud UI to manage your app. Below are some of the most common actions you may want to take. | ||
|
|
||
|
|
||
| ## Stopping an App | ||
|
|
||
| To stop an app follow the arrow in the image below and press on the `Stop app` button. Pausing an app will stop it from running and will not be accessible to users until you resume it. In addition, this will stop you being billed for your app. | ||
|
|
||
| ```python eval | ||
| image_zoom(rx.image(src="/stopping_app.webp", padding_bottom="20px")) | ||
| ``` | ||
|
|
||
| ```md alert info | ||
| # CLI Command to stop an app | ||
| `reflex cloud apps stop [OPTIONS] [APP_ID]` | ||
| ``` | ||
|
|
||
| ## Deleting an App | ||
|
|
||
| To delete an app click on the `Settings` tab in the Cloud UI on the app page. | ||
|
|
||
| ```python eval | ||
| image_zoom(rx.image(src="/environment_variables.webp")) | ||
| ``` | ||
|
|
||
| Then click on the `Danger` tab as shown below. | ||
|
|
||
| ```python eval | ||
| image_zoom(rx.image(src="/deleting_app.webp")) | ||
| ``` | ||
|
|
||
| Here there is a `Delete app` button. Pressing this button will delete the app and all of its data. This action is irreversible. | ||
|
|
||
| ```md alert info | ||
| # CLI Command to delete an app | ||
| `reflex cloud apps delete [OPTIONS] [APP_ID]` | ||
| ``` | ||
|
|
||
|
|
||
| ## Other app settings | ||
|
|
||
| Clicking on the `Settings` tab in the Cloud UI on the app page also allows a user to change the `app name`, change the `app description` and check the `app id`. | ||
|
|
||
| The other app settings also allows users to edit and add secrets (environment variables) to the app. For more information on secrets, see the [Secrets (Environment Variables)]({hosting.secrets_environment_vars.path}) page. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,32 @@ | ||
| ```python exec | ||
| import reflex as rx | ||
| from reflex_image_zoom import image_zoom | ||
| from pcweb.pages.pricing.calculator import compute_table_base | ||
| from pcweb.pages.docs import hosting | ||
| ``` | ||
|
|
||
| ## Overview | ||
|
|
||
| Billing for Reflex Cloud is monthly per project. Project owners and admins are able to view and manage the billing page. | ||
|
|
||
| The billing for a project is comprised of two parts - number of `seats` and `compute`. | ||
|
|
||
| ## Seats | ||
|
|
||
| Projects on a paid plan can invite collaborators to join their project. | ||
|
|
||
| Each additional collaborator is considered a `seat` and is charged on a flat monthly rate. Project owners and admins can manage permissions and roles for each seat in the settings tab on the project page. | ||
|
|
||
| ## Compute | ||
|
|
||
| Reflex Cloud is billed on a per second basis so you only pay for when your app is being used by your end users. When your app is idle, you are not charged. | ||
|
|
||
| For more information on compute pricing, please see the [compute]({hosting.compute.path}) page. | ||
|
|
||
| ## Manage Billing | ||
|
|
||
| To manage your billing, you can go to the `Billing` tab in the Cloud UI on the project page. | ||
|
|
||
| ## Setting Billing Limits | ||
|
|
||
| If you want to set a billing limit for your project, you can do so by going to the `Billing` tab in the Cloud UI on the project page. |
This file contains hidden or 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,35 @@ | ||
| ```python exec | ||
| import reflex as rx | ||
| from reflex_image_zoom import image_zoom | ||
| from pcweb.pages.pricing.calculator import compute_table_base | ||
| ``` | ||
|
|
||
| ## Compute Usage | ||
|
|
||
| Reflex Cloud is billed on a per second basis so you only pay for when your app is being used by your end users. When your app is idle, you are not charged. | ||
|
|
||
| This allows you to deploy your app on larger sizes and multiple regions without worrying about paying for idle compute. We bill on a per second basis so you only pay for the compute you use. | ||
|
|
||
| By default your app stays alive for 5 minutes after the no users are connected. After this time your app will be considered idle and you will not be charged. Start up times usually take less than 1 second for you apps to come back online. | ||
|
|
||
| #### Warm vs Cold Start | ||
| - Apps below `c2m2` are considered warm starts and are usually less than 1 second. | ||
| - If your app is larger than `c2m2` it will be a cold start which takes around 15 seconds. If you want to avoid this you can reserve a machine. | ||
|
|
||
| ## Compute Pricing Table | ||
|
|
||
| ```python eval | ||
| compute_table_base() | ||
| ``` | ||
|
|
||
| ## Reserved Machines (Coming Soon) | ||
|
|
||
| If you expect your apps to be continously recieving users, you may want to reserve a machine instead of having us manage your compute. | ||
|
Check failure on line 27 in docs/hosting/compute.md
|
||
|
|
||
| This will be a flat monthly rate for the machine. | ||
|
|
||
| ## Monitoring Usage | ||
|
|
||
| To monitor your projects usage, you can go to the billing tab in the Reflex Cloud UI on the project page. | ||
|
|
||
| Here you can see the current billing and usage for your project. | ||
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.