-
Notifications
You must be signed in to change notification settings - Fork 6
Document BYOC #119
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
Document BYOC #119
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a15e76e
FAQs
jordanstephens c7abd51
rough pass on deployment modes
jordanstephens 96083f4
rough provider tutorials
jordanstephens f405164
fix links
jordanstephens 8aead43
add a video to the intro page
jordanstephens d1eacb6
tighten up the sidebar
jordanstephens 02f2395
rewording
commit111 5c37f43
capitalize tutorial titles
commit111 765bc78
keep steps using hypen instead of colon + vllm link
commit111 cca6b71
fix tip for aws sts caller identity
commit111 b876ec2
fix digital ocean wording
commit111 26f6c93
fix digital ocean wording
commit111 e401be2
Merge branch 'jordan/launch-prep' of https://github.com/DefangLabs/de…
commit111 4a44e8d
more typo fixes
commit111 379c7e3
faq cloud support question
commit111 de382d9
change ai assistant to ai agent
commit111 a76c421
faq aws question
commit111 1ab2232
better version of faq aws question
commit111 98f39d0
omit postgres upgrade section
commit111 534cad3
data stores mention managed postgres/redis
commit111 9bed739
better version of data store section
commit111 776d5c7
refined data store again
commit111 3f16324
remove distracting notes about deployment modes
jordanstephens 9a41dab
reword data stores
commit111 119acc8
Merge branch 'jordan/launch-prep' of https://github.com/DefangLabs/de…
commit111 8185c3e
links to object storage in data stores
commit111 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,9 +1,8 @@ | ||
{ | ||
"label": "Concepts", | ||
"position": 300, | ||
"position": 500, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Some concepts to help explain how the Defang system is organized and tooling that will help you manage your applications." | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Defang Deployment Modes | ||
description: Defang provides three deployment modes which allow you to balance cost and resiliency. | ||
sidebar_position: 501 | ||
--- | ||
|
||
# Defang Deployment Modes | ||
|
||
Defang provides three deployment modes: development, staging, and production. These modes allow you to balance cost and resiliency according to your needs. | ||
|
||
* **Development**: This mode is used for development and testing purposes. It typically involves less stringent resource allocations and may include debugging tools and verbose logging to aid in development. | ||
* **Staging**: This mode serves as a pre-production environment where applications are tested in conditions that closely mimic production. It helps in identifying issues that might not be apparent in the development environment. | ||
* **Production**: This mode is used for live deployments. It involves optimized configurations for performance, security, and reliability. Resource allocations are typically higher, and debugging tools are minimized to ensure stability. | ||
|
||
## Deployment Mode Comparison | ||
|
||
| Feature | Development | Staging | Production | | ||
|-|-|-|-| | ||
| Build Resources | Builds will be run with 2x vCPUs | Builds will be run with 2x vCPUs | Builds will be run with 4x vCPUs | | ||
| Databases | Defang will provision resources optimized for burstable memory | | Defang will provision resources optimized for production | | ||
| Static Resources | | | Defang will provision a CDN | | ||
| Deployment | Previous deployments will be spun down before new deployments are spun up. | | Rolling updates will be used to deploy new versions. Defang will gradually replace services while maintaining at least the original number of replicas. | | ||
| Logging | Logs retained for 1 day to save costs. | | Logs retained for 30 days for compliance. | | ||
| Networking | | | Defang will provision a NAT gateway. | | ||
| DNS | Defang will provision shorter TTLs | | Defang will provision longer TTLs | |
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
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 |
---|---|---|
|
@@ -13,23 +13,47 @@ description: Frequently asked questions about Defang. | |
|
||
### Can I bring my own AWS or other cloud account? | ||
|
||
- Yes! Please check out the [Defang BYOC](./concepts/defang-byoc.md) documentation for more information. | ||
- Yes! Defang makes it easy to deploy your application to your own cloud account. Please check out the [Defang BYOC](./concepts/defang-byoc.md) documentation for more information. | ||
|
||
### On AWS, can I deploy to services such as EC2, EKS, or Lambda? | ||
|
||
- The current release includes support for containers only, deployed to ECS. We are still exploring how to support additional execution models such as VMs and functions-as-a-service. However, using our Pulumi provider, it is possible to combine Defang services with other native AWS resources. | ||
|
||
### Can I access AWS storage services such as S3 or database services such as RDS? How? | ||
|
||
- Yes, you can access whatever other resources exist in the cloud account you are using as a [Defang BYOC](./concepts/defang-byoc.md) Provider. | ||
- Yes, you can access AWS services in the AWS Dashboard as you normally would when you are [deploying to your AWS account](./providers/aws) using Defang. In fact, you can access whatever other resources exist in the cloud account you are using for [Defang BYOC](./concepts/defang-byoc.md). | ||
|
||
### Do you plan to support other clouds? | ||
### Can I run production apps with Defang? | ||
|
||
- While we currently support AWS as a [Defang BYOC](./concepts/defang-byoc.md) Provider, we plan to support other clouds in future releases, such as [Azure](./providers/azure.md) and [GCP](./providers/gcp.md). | ||
- Yes! Defang makes it easy to deploy your app on production-ready infrastructure in your own cloud account. For example, you can deploy your app to AWS with `defang up --provider=aws --mode=production`. Check out your preferred cloud provider on [Defang BYOC](./concepts/defang-byoc.md). | ||
|
||
### Can I run production apps with Defang? | ||
### Does Defang support blue/green deployments? | ||
|
||
- Defang does not currently support Blue/Green deploys, but it does support rolling updates with the `production` deployment mode. `defang up --mode=production`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See previous comment about explaining rolling updates in more detail. |
||
|
||
### Does Defang support rolling deployments? | ||
|
||
- Yes! Defang supports rolling updates with the `production` deployment mode. `defang up --mode=production`. | ||
|
||
### Can I cancel a deployment once it has started? | ||
|
||
- No. Once a deployment has started, it cannot be canceled. However, you can always deploy a new version of your app which will replace the current deployment. | ||
|
||
### Will deploying a new version of my app cause downtime? | ||
|
||
- If you have deployed your application with the `--mode=production` flag, Defang will use the _production_ deployment mode. This mode will provision your app with multiple replicas and will perform a rolling update to ensure zero downtime. If you use another deployment mode, you may experience downtime during the deployment, as defang will not provision multiple replicas to save cost. | ||
|
||
### Can I deploy multiple services at once? | ||
|
||
- Yes! You can deploy multiple services at once by defining them in a single compose.yaml file. When you run `defang compose up`, Defang will deploy all the services defined in the file at once. | ||
|
||
### Can I deploy a service that depends on another service? | ||
|
||
- Defang does not currently support service dependencies. All services will be deployed simultaneously. Defang will however run multiple healthchecks before marking a service as healthy and spinning down any previously deployed services when using the `production` deployment mode. | ||
|
||
### Do you plan to support other clouds? | ||
|
||
- The [Defang Playground](./concepts/defang-playground.md) is meant for testing and trial purposes only. Deployment of productions apps with [Defang BYOC](./concepts/defang-byoc.md) is not yet supported and disallowed by the [Terms of Service](https://defang.io/terms-service.html). If you are interested in running production apps, please [contact us](https://defang.io/#Contact-us). | ||
- While we currently support [AWS](./concepts/defang-byoc#aws) for production and [DigitalOcean](./concepts/defang-byoc#digitalocean) in preview, we plan to support other clouds in future releases, such as [GCP](./providers/gcp.md) and [Azure](./providers/azure.md). | ||
|
||
### I'm having trouble running the binary on my Mac. What should I do? | ||
|
||
|
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
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,8 +1,8 @@ | ||
{ | ||
"label": "Providers", | ||
"position": 350, | ||
"position": 400, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Defang allows you to use your own cloud accounts to deploy your applications. Click on a link below to read documentation about specific providers." | ||
} | ||
} | ||
} |
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we say something about behavior on 'compose down'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I think we should create a
Databases
concept topic where we can discuss the subtlety more carefully 👍