Skip to content

Commit dbb256b

Browse files
authored
Merge pull request #36674 from github/repo-sync
Repo sync
2 parents 3f1ea14 + 1e71262 commit dbb256b

File tree

3 files changed

+395
-92
lines changed

3 files changed

+395
-92
lines changed

content/admin/managing-github-actions-for-your-enterprise/advanced-configuration-and-troubleshooting/troubleshooting-github-actions-for-your-enterprise.md

-92
Original file line numberDiff line numberDiff line change
@@ -64,98 +64,6 @@ You will need to update the configuration of your self-hosted runners to use the
6464
* In the self-hosted runner application directory, edit the `.runner` and `.credentials` files to replace all mentions of the old hostname with the new hostname, then restart the self-hosted runner application.
6565
* Remove the runner from {% data variables.product.prodname_ghe_server %} using the UI, and re-add it. For more information, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/removing-self-hosted-runners) and [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners).
6666

67-
## Stuck jobs and {% data variables.product.prodname_actions %} memory and CPU limits
68-
69-
{% data variables.product.prodname_actions %} is composed of multiple services running on {% data variables.location.product_location %}. By default, these services are set up with default CPU and memory limits that should work for most instances. However, heavy users of {% data variables.product.prodname_actions %} might need to adjust these settings.
70-
71-
You may be hitting the CPU or memory limits if you notice that jobs are not starting (even though there are idle runners), or if the job's progress is not updating or changing in the UI.
72-
73-
### 1. Check the overall CPU and memory usage in the management console
74-
75-
Access the management console and use the monitor dashboard to inspect the overall CPU and memory graphs under "System Health". For more information, see [AUTOTITLE](/admin/monitoring-and-managing-your-instance/monitoring-your-instance/about-the-monitor-dashboards).
76-
77-
If the overall "System Health" CPU usage is close to 100%, or there is no free memory left, then {% data variables.location.product_location %} is running at capacity and needs to be scaled up. For more information, see [AUTOTITLE](/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/increasing-cpu-or-memory-resources).
78-
79-
### 2. Check the Nomad Jobs CPU and memory usage in the management console
80-
81-
If the overall "System Health" CPU and memory usage is OK, scroll down the monitor dashboard page to the "Nomad Jobs" section, and look at the "CPU Percent Value" and "Memory Usage" graphs.
82-
83-
Each plot in these graphs corresponds to one service. For {% data variables.product.prodname_actions %} services, look for:
84-
85-
* `mps_frontend`
86-
* `mps_backend`
87-
* `token_frontend`
88-
* `token_backend`
89-
* `actions_frontend`
90-
* `actions_backend`
91-
92-
If any of these services are at or near 100% CPU utilization, or the memory is near their limit (2 GB by default), then the resource allocation for these services might need increasing. Take note of which of the above services are at or near their limit.
93-
94-
### 3. Increase the resource allocation for services at their limit
95-
96-
1. Log in to the administrative shell using SSH. For more information, see [AUTOTITLE](/admin/configuration/configuring-your-enterprise/accessing-the-administrative-shell-ssh).
97-
1. Run the following command to see what resources are available for allocation:
98-
99-
```shell
100-
nomad node status -self
101-
```
102-
103-
In the output, find the "Allocated Resources" section. It looks similar to the following example:
104-
105-
```text
106-
Allocated Resources
107-
CPU Memory Disk
108-
7740/49600 MHZ 23 GiB/32 GiB 4.4 GiB/7.9 GiB
109-
```
110-
111-
For CPU and memory, this shows how much is allocated to the **total** of **all** services (the left value) and how much is available (the right value). In the example above, there is 23 GiB of memory allocated out of 32 GiB total. This means there is 9 GiB of memory available for allocation.
112-
113-
> [!WARNING]
114-
> Be careful not to allocate more than the total available resources, or services will fail to start.
115-
116-
1. Change directory to `/etc/consul-templates/etc/nomad-jobs/actions`:
117-
118-
```shell
119-
cd /etc/consul-templates/etc/nomad-jobs/actions
120-
```
121-
122-
In this directory there are three files that correspond to the {% data variables.product.prodname_actions %} services from above:
123-
124-
* `mps.hcl.ctmpl`
125-
* `token.hcl.ctmpl`
126-
* `actions.hcl.ctmpl`
127-
1. For the services that you identified that need adjustment, open the corresponding file and locate the `resources` group that looks like the following:
128-
129-
```text
130-
resources {
131-
cpu = 512
132-
memory = 2048
133-
network {
134-
port "http" { }
135-
}
136-
}
137-
```
138-
139-
The values are in MHz for CPU resources, and MB for memory resources.
140-
141-
For example, to increase the resource limits in the above example to 1 GHz for the CPU and 4 GB of memory, change it to:
142-
143-
```text
144-
resources {
145-
cpu = 1024
146-
memory = 4096
147-
network {
148-
port "http" { }
149-
}
150-
}
151-
```
152-
153-
1. Save and exit the file.
154-
1. Run `ghe-config-apply` to apply the changes.
155-
156-
When running `ghe-config-apply`, if you see output like `Failed to run nomad job '/etc/nomad-jobs/<name>.hcl'`, then the change has likely over-allocated CPU or memory resources. If this happens, edit the configuration files again and lower the allocated CPU or memory, then re-run `ghe-config-apply`.
157-
1. After the configuration is applied, run `ghe-actions-check` to verify that the {% data variables.product.prodname_actions %} services are operational.
158-
15967
## Troubleshooting failures when {% data variables.product.prodname_dependabot %} triggers existing workflows
16068

16169
{% data reusables.dependabot.dependabot-on-actions-troubleshooting-workflows %} For more information, see [Providing workflows triggered by {% data variables.product.prodname_dependabot %} access to secrets and increased permissions](#providing-workflows-triggered-by-dependabot-access-to-secrets-and-increased-permissions) below.

content/copilot/using-github-copilot/guides-on-using-github-copilot/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ children:
1212
- /refactoring-code-with-github-copilot
1313
- /using-copilot-to-migrate-a-project
1414
- /writing-tests-with-github-copilot
15+
- /modernizing-legacy-code-with-github-copilot
1516
---

0 commit comments

Comments
 (0)