Skip to content

Commit aa09a8a

Browse files
authored
Merge branch 'main' into patch-1
2 parents e6769a8 + 0ed8bbf commit aa09a8a

File tree

248 files changed

+34633
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+34633
-326
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: 🥌 Create publication PR
2+
run-name: Create publication PR [${{ github.actor }}]
3+
4+
permissions:
5+
pull-requests: write
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
releaseBranch:
11+
required: true
12+
description: Release branch name
13+
mergeTarget:
14+
required: true
15+
default: 'main'
16+
description: Merge target for PR
17+
18+
jobs:
19+
create-pr:
20+
runs-on: ubuntu-latest
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
prTitle: "[PUBLISH] ${{ github.event.inputs.releaseBranch }}"
24+
prBody: |
25+
🚧 \`${{ github.repository }}\` publication PR
26+
27+
**Triggered by**: @${{ github.actor }} with a Github action
28+
**Release branch**: \`${{ github.event.inputs.releaseBranch }}\`
29+
**Merge target**: \`${{ github.event.inputs.mergeTarget }}\`
30+
31+
steps:
32+
- name: Check out repository code
33+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
34+
with:
35+
fetch-depth: 0
36+
- name: Create pull request
37+
run: |
38+
gh pr create \
39+
--base ${{ github.event.inputs.mergeTarget }} \
40+
--head ${{ github.event.inputs.releaseBranch }} \
41+
--title "${{ env.prTitle }}" \
42+
--body "${{ env.prBody }}"
43+
- name: Wrap-up
44+
run: |
45+
echo "🍏 Final job status: ${{ job.status }}"

.github/workflows/label-content-prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: read
1616
pull-requests: write
1717
steps:
18-
- uses: actions/labeler@v5
18+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9
1919
with:
2020
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21-
sync-labels: true
21+
sync-labels: true

content/terraform-enterprise/1.0.x/docs/enterprise/deploy/reference/configuration.mdx

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,76 @@ Maximum amount of memory (MiB) a Terraform run is allowed to use. Defaults to
3333
`2048`.
3434
Ignored if `TFE_RUN_PIPELINE_DRIVER` is set to `nomad`.
3535

36+
### `TFE_ATLAS_YJIT_ENABLED`
37+
38+
Enables Ruby's YJIT compiler for improved performance of the Atlas Rails application and Sidekiq worker processes. YJIT compiles frequently executed code to machine code, providing performance gains most noticeable under sustained load.
39+
40+
Performance improvements vary by workload but are typically most beneficial for high-traffic deployments.
41+
42+
Defaults to `false`.
43+
44+
### `TFE_ATLAS_WEB_WORKER_COUNT`
45+
46+
Number of web worker processes for the Atlas Rails application.
47+
48+
Higher values can improve response times under heavy load but increase memory usage.
49+
50+
The minimum is `1` and the maximum is `10`. Defaults to CPU count ÷ 2.
51+
52+
## Atlas database tuning
53+
54+
### `TFE_ATLAS_DB_POOL`
55+
56+
Database connection pool size for the Atlas Rails application.
57+
58+
Increase this value if you experience connection timeouts or slow web interface performance during peak usage. Larger pools improve performance under high load but consume more database resources.
59+
60+
Must be between `16` and `128`. Defaults to `16`.
61+
62+
### `TFE_ATLAS_SIDEKIQ_DB_POOL`
63+
64+
Database connection pool size for Sidekiq background worker processes.
65+
66+
Increase this value if you notice slow job processing or job queue backlogs. Background jobs perform many database operations, so adequate pool sizing is important for processing performance.
67+
68+
Must be between `16` and `128`. Defaults to `16`.
69+
70+
## Atlas process management
71+
72+
### `TFE_ATLAS_ROTATE_ENABLED`
73+
74+
Enables automatic Puma web server process rotation to maintain application stability and manage memory usage.
75+
76+
When enabled, Puma worker processes restart based on memory thresholds or scheduled intervals. This helps establish a ceiling of memory consumption for Puma processes
77+
78+
Enable this setting if you experience memory growth or want fresh worker processes on a regular schedule.
79+
80+
Defaults to `false`.
81+
82+
### `TFE_ATLAS_ROTATE_CRON`
83+
84+
Cron expression for scheduled Puma process rotation when `TFE_ATLAS_ROTATE_ENABLED` is `true`.
85+
86+
Use standard cron syntax. For example, `0 2 * * *` restarts workers daily at 2:00 AM.
87+
88+
### `TFE_ATLAS_ROTATE_MEMORY_THRESHOLD`
89+
90+
Memory threshold that triggers automatic Puma process rotation. Specify using human-readable format, for example `4GB`, `2048MB`.
91+
92+
When total memory usage of all Puma processes exceeds this threshold, workers restart. This prevents out-of-memory conditions and maintains consistent performance.
93+
94+
Minimum threshold is `2GB`. Only takes effect when `TFE_ATLAS_ROTATE_ENABLED` is `true`.
95+
96+
### `TFE_ATLAS_DISABLE_CRITICAL_SIDEKIQ_WORKER`
97+
98+
Disables the dedicated Sidekiq worker pool that processes critical and high-priority background jobs.
99+
100+
Terraform Enterprise runs two Sidekiq worker pools. One pool is for all job queues and the second is exclusively for critical jobs. This ensures important operations aren't delayed by lower-priority work.
101+
102+
This is an emergency setting. Only enable when directed by HashiCorp support.
103+
104+
Defaults to `false`.
105+
36106
### `TFE_ENCRYPTION_PASSWORD`
37107

38108
Encryption password used to encrypt and decrypt the internal Vault root token

0 commit comments

Comments
 (0)