This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address #249: add documentation about DynamoDB cache refresh behavior
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -69,6 +69,21 @@ Set ``pypi.db = dynamo`` OR ``pypi.db = pypicloud.cache.dynamo.DynamoCache`` | |
install the necessary DynamoDB libraries. Also, be sure you have set the | ||
correct :ref:`dynamodb_policy`. | ||
|
||
.. note:: | ||
|
||
Pypicloud will create the DynamoDB tables if none exist. By default the | ||
tables will be named ``pypicloud-DynamoPackage`` and | ||
``pypicloud-PackageSummary`` (this can be configured with ``db.namespace`` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stevearc
Author
Owner
|
||
and ``db.tablenames``). You may create and configure these tables yourself as | ||
long as they have the same schema. | ||
|
||
.. warning:: | ||
|
||
When you reload the cache from the admin interface, the default behavior will | ||
drop the DynamoDB tables and re-create them. If you have configured the | ||
tables to have server-side encryption, or customized the throughput, you may | ||
find this undesirable. To avoid this, set ``db.graceful_reload = true`` | ||
|
||
``db.region_name`` | ||
~~~~~~~~~~~~~~~~~~ | ||
**Argument:** string | ||
|
By default, tables names are
DynamoPackage
andPackageSummary
. It doesn't have the prefixpypicloud-
as per https://github.com/stevearc/pypicloud/blob/master/pypicloud/cache/dynamo.py.