mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 14:17:46 +00:00
Merge remote-tracking branch 'origin/master' into nightly
This commit is contained in:
commit
b4c58ed929
@ -0,0 +1,12 @@
|
|||||||
|
<!--
|
||||||
|
Create a changelog entry for every new user-facing change. Please respect the following instructions:
|
||||||
|
- Indicate breaking changes by prepending an explosion 💥 character.
|
||||||
|
- Prefix your changes with either [Bugfix], [Improvement], [Feature], [Security], [Deprecation].
|
||||||
|
- You may optionally append "(by @<author>)" at the end of the line, where "<author>" is either one (just one)
|
||||||
|
of your GitHub username, real name or affiliated organization. These affiliations will be displayed in
|
||||||
|
the release notes for every release.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- - 💥[Feature] Foobarize the blorginator. This breaks plugins by renaming the `FOO_DO` filter to `BAR_DO`. (by @regisb) -->
|
||||||
|
<!-- - [Improvement] This is a non-breaking change. Life is good. (by @billgates) -->
|
||||||
|
- [Bugfix] Add the missing `UWSGI_WORKERS` env variables to the lms and cms k8s deployments. (by @MoisesGSalas)
|
@ -112,6 +112,34 @@ You can identify which containers are consuming most resources by running::
|
|||||||
|
|
||||||
docker stats
|
docker stats
|
||||||
|
|
||||||
|
In idle mode, the "mysql" container should use ~200MB memory; ~200-300MB for the the "lms" and "cms" containers.
|
||||||
|
|
||||||
|
On some operating systems, such as RedHat, Arch Linux or Fedora, a very high limit of the number of open files (``nofile``) per container may cause the "mysql", "lms" and "cms" containers to use a lot of memory: up to 8-16GB. To check whether you might impacted, run::
|
||||||
|
|
||||||
|
cat /proc/$(pgrep dockerd)/limits | grep "Max open files"
|
||||||
|
|
||||||
|
If the output is 1073741816 or higher, then it is likely that you are affected by `this mysql issue <https://github.com/docker-library/mysql/issues/579>`__. To learn more about the root cause, read `this containerd issue comment <https://github.com/containerd/containerd/pull/7566#issuecomment-1285417325>`__. Basically, the OS is hard-coding a very high limit for the allowed number of open files, and this is causing some containers to fail. To resolve the problem, you should configure the Docker daemon to enforce a lower value, as described `here <https://github.com/docker-library/mysql/issues/579#issuecomment-1432576518>`__. Edit ``/etc/docker/daemon.json`` and add the following contents::
|
||||||
|
|
||||||
|
{
|
||||||
|
"default-ulimits": {
|
||||||
|
"nofile": {
|
||||||
|
"Name": "nofile",
|
||||||
|
"Hard": 1048576,
|
||||||
|
"Soft": 1048576
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Check your configuration is valid with::
|
||||||
|
|
||||||
|
dockerd --validate
|
||||||
|
|
||||||
|
Then restart the Docker service::
|
||||||
|
|
||||||
|
sudo systemctl restart docker.service
|
||||||
|
|
||||||
|
Launch your Open edX platform again with ``tutor local launch``. You should observe normal memory usage.
|
||||||
|
|
||||||
"Build failed running pavelib.servers.lms: Subprocess return code: 1"
|
"Build failed running pavelib.servers.lms: Subprocess return code: 1"
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -85,6 +85,8 @@ spec:
|
|||||||
value: cms
|
value: cms
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
value: cms.envs.tutor.production
|
value: cms.envs.tutor.production
|
||||||
|
- name: UWSGI_WORKERS
|
||||||
|
value: "{{ OPENEDX_CMS_UWSGI_WORKERS }}"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@ -185,6 +187,8 @@ spec:
|
|||||||
value: lms
|
value: lms
|
||||||
- name: DJANGO_SETTINGS_MODULE
|
- name: DJANGO_SETTINGS_MODULE
|
||||||
value: lms.envs.tutor.production
|
value: lms.envs.tutor.production
|
||||||
|
- name: UWSGI_WORKERS
|
||||||
|
value: "{{ OPENEDX_LMS_UWSGI_WORKERS }}"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
Loading…
Reference in New Issue
Block a user