Skip to content

Commit

Permalink
feat: allow 48GB memory on databases
Browse files Browse the repository at this point in the history
  • Loading branch information
gigatim committed Jul 17, 2022
1 parent 44f5c9e commit f7d205c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ You can find your database id by running
gigalixir pg
Supported sizes include 0.6, 1.7, 4, 8, 16, 32, 64, and 128. For more information about databases sizes, see :ref:`database sizes`.
Supported sizes include 0.6, 1.7, 4, 8, 16, 32, 48, 64, and 128. For more information about databases sizes, see :ref:`database sizes`.

How to dump the database to a file
==================================
Expand Down
3 changes: 2 additions & 1 deletion docs/source/tiers-pricing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Database Sizes & Pricing

In the free tier, the database is free, but it is really not suitable for production use. It is a multi-tenant postgres database cluster with shared CPU, memory, and disk. You are limited to 2 connections, 10,000 rows, and no backups. Idle connections are terminated after 5 minutes. If you want to upgrade your database, you'll have to migrate the data yourself. For a complete feature comparison see :ref:`tiers`.

In the standard tier, database sizes are defined as a single number for simplicity. The number defines how many GBs of memory your database will have. Supported sizes include 0.6, 1.7, 4, 8, 16, 32, 64, and 128. Sizes 0.6 and 1.7 share CPU with other databases. All other sizes have dedicated CPU, 1 CPU for every 4 GB of memory. For example, size 4 has 1 dedicated CPU and size 64 has 16 dedicated CPUs. All databases start with 10 GB disk and increase automatically as needed.
In the standard tier, database sizes are defined as a single number for simplicity. The number defines how many GBs of memory your database will have. Supported sizes include 0.6, 1.7, 4, 8, 16, 32, 48, 64, and 128. Sizes 0.6 and 1.7 share CPU with other databases. All other sizes have dedicated CPU, 1 CPU for every 4 GB of memory. For example, size 4 has 1 dedicated CPU and size 64 has 16 dedicated CPUs. All databases start with 10 GB disk and increase automatically as needed.

==== ============= ======= ============= ================ =============
Size Price / Month RAM Rollback Days Connection Limit Storage Limit
Expand All @@ -142,6 +142,7 @@ Size Price / Month RAM Rollback Days Connection Limit Storage Limit
8 $200 8 GB 7 200 200 GB
16 $400 16 GB 7 250 400 GB
32 $800 32 GB 7 300 800 GB
48 $1200 48 GB 7 350 1.2 TB
64 $1600 64 GB 7 400 1.6 TB
128 $3200 128 GB 7 500 3.2 TB
==== ============= ======= ============= ================ =============
Expand Down
10 changes: 5 additions & 5 deletions gigalixir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def status(ctx, app_name):
@cli.command(name='pg:scale')
@click.option('-a', '--app_name', envvar="GIGALIXIR_APP")
@click.option('-d', '--database_id', required=True)
@click.option('-s', '--size', type=float, default=0.6, help='Size of the database can be 0.6, 1.7, 4, 8, 16, 32, 64, or 128.')
@click.option('-s', '--size', type=float, default=0.6, help='Size of the database can be 0.6, 1.7, 4, 8, 16, 32, 48, 64, or 128.')
@click.pass_context
@report_errors
@detect_app_name
Expand Down Expand Up @@ -330,7 +330,7 @@ def scale(ctx, app_name, replicas, size):
@detect_app_name
def rollback(ctx, app_name, version):
"""
Rollback to a previous release.
Rollback to a previous release.
"""
gigalixir_app.rollback(ctx.obj['host'], app_name, version)

Expand Down Expand Up @@ -509,7 +509,7 @@ def account(ctx):
@report_errors
def reset_api_key(ctx, password, yes):
"""
Regenerate a replacement api key.
Regenerate a replacement api key.
"""
gigalixir_api_key.regenerate(ctx.obj['host'], password, yes, ctx.obj['env'])

Expand Down Expand Up @@ -706,7 +706,7 @@ def add_ssh_key(ctx, ssh_key):
@detect_app_name
def add_domain(ctx, app_name, fully_qualified_domain_name):
"""
Adds a custom domain name to your app.
Adds a custom domain name to your app.
"""
gigalixir_domain.create(ctx.obj['host'], app_name, fully_qualified_domain_name)

Expand Down Expand Up @@ -880,7 +880,7 @@ def delete_ssh_key(ctx, key_id):
@detect_app_name
def delete_app(ctx, app_name, yes):
"""
Deletes an app. Can not be undone.
Deletes an app. Can not be undone.
"""
logging.getLogger("gigalixir-cli").info("WARNING: Deleting an app can not be undone.")
if yes or click.confirm('Do you want to delete your app (%s)?' % app_name):
Expand Down

0 comments on commit f7d205c

Please sign in to comment.