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
Porting Single server to Flexible server #394
Conversation
Thanks @pamelafox for this PR! I'll review it this week and add terraform support before merging.
TODO
|
Okay, if I don't set high-availability as the default, then I also need to update the SLA on the form to be lower - I think 99.9%? Per this doc: |
@pamelafox correct! |
@cmaneu Okay, I made high ability into a param and updated the SLA accordingly. |
@@ -943,7 +943,7 @@ <h3 class="text-lg leading-6 font-medium text-gray-900"> | |||
<div class="p-3 border rounded px-5 py-6 " | |||
:class="components.database.size==='basic' ? 'bg-blue-900 text-white' : 'border-gray-300 bg-white text-black-500 hover:bg-blue-100'" | |||
@click="components.database.size = 'basic'" | |||
x-show="components.database.type!=='SQL_SERVER'"><span class="text-2xl">Basic</span> | |||
x-show="components.database.type==='MYSQL'"><span class="text-2xl">Basic</span> |
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.
Why this change? (I know this code is not perfect and hard to read..)
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.
That change was because this Basic div is only for MySQL now, it used to be for both MYSQL and POSTGRES, but there were enough differences in the low tier (name, SLA) that I made a brand new div.
</div> | ||
<div class="flex row-auto items-center mt-4"><i | ||
class="fa fa-check-circle-o text-gray-400"></i> | ||
<span class="ml-3 ">99,99% SLA with High Availability</span> |
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.
To update to reflect the new SLA.
Proposal: 99,9% SLA, High Availability available as an option
storage: { | ||
storageSizeGB: 128 | ||
} | ||
highAvailability: { |
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.
High availability doesn't work with burstable SKU (on top of the pricing we've already discussed). I suggest to
- Add a new parameter
@description('Enables High Availability deployment. Does not work on Burstable SKU')
param enableHighAvailability bool = false
- Replace that code with:
highAvailability: {
mode: (enableHighAvailability ? 'ZoneRedundant' : null)
}
Tested on my end.
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.
Ah, I didn't realize it wasn't available for Burstable. Are you making that change or shall I? If you're going to default it to ZoneRedundant and not give the SameZone option, I think that description should say that. Do most people go for ZoneRedundant if they enable it, as a best practice?
This PR replaces PostgreSQL Single Server with Flexible Server.
A few open questions for you:
Here are all the Bicep errors output by me deploying app service + PG, for the record: