Skip to content

Commit 9b0456d

Browse files
authored
Merge pull request #15 from data-platform-hq/site-scaling
feat: add site-scaling
2 parents 075bbc3 + 61e93d8 commit 9b0456d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ No modules.
5858
| <a name="input_tags"></a> [tags](#input\_tags) | Tags | `map(string)` | n/a | yes |
5959
| <a name="input_use_private_net"></a> [use\_private\_net](#input\_use\_private\_net) | Use private network injection | `bool` | `false` | no |
6060
| <a name="input_websockets_enabled"></a> [websockets\_enabled](#input\_websockets\_enabled) | Enable websockets | `bool` | `false` | no |
61+
| <a name="input_worker_count"></a> [worker\_count](#input\_worker\_count) | Number of workers | `number` | `null` | no |
6162

6263
## Outputs
6364

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ resource "azurerm_linux_web_app" "this" {
8787
use_32_bit_worker = false
8888
ip_restriction = var.ip_restriction
8989
scm_ip_restriction = var.scm_ip_restriction == null ? var.ip_restriction : var.scm_ip_restriction
90+
worker_count = var.worker_count
9091
application_stack {
9192
docker_image = local.application_stack["docker_image"]
9293
docker_image_tag = local.application_stack["docker_image_tag"]

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,9 @@ variable "client_affinity_enabled" {
198198
description = "Improve performance of your stateless app by turning Affinity Cookie off, stateful apps should keep this setting on for compatibility"
199199
default = false
200200
}
201+
202+
variable "worker_count" {
203+
type = number
204+
description = "Number of workers"
205+
default = null
206+
}

0 commit comments

Comments
 (0)