Skip to content
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

MTU fix - set docker-compose MTU to 1440 #84

Merged
merged 2 commits into from
Apr 16, 2022
Merged

MTU fix - set docker-compose MTU to 1440 #84

merged 2 commits into from
Apr 16, 2022

Conversation

shaal
Copy link
Owner

@shaal shaal commented Apr 16, 2022

The Problem/Issue/Bug

Since yesterday (April 15) running composer through ddev in Gitpod, resulted in errors.
This seems to be related to Fastly endpoints, and wrong MTU value in docker-compose - gitpod-io/gitpod#9354

A permanent solution is being worked on - gitpod-io/gitpod#9356

How this PR Solves The Problem

Set the correct MTU level (1440) manually

Manual Testing Instructions

In terminal type ddev ssh
Run 10 times -

  • curl https://www.drupal.org

Related Issue Link(s)

Release/Deployment notes

@shaal
Copy link
Owner Author

shaal commented Apr 16, 2022

Gitpod created a custom docker-compose that includes MTU 1440.
ddev is set to use its own docker-compose binary by default /home/gitpod/.ddev/bin/docker-compose

I tried setting ddev's global config use_docker_compose_from_path: true, but it resulted with many errors.

I'll merge this PR until a better solution is available through Gitpod / ddev.

@shaal shaal merged commit 7203802 into main Apr 16, 2022
@shaal shaal deleted the mtu-fix branch April 16, 2022 18:38
@shaal
Copy link
Owner Author

shaal commented Apr 17, 2022

Summary -
Temporary fix for network issues when running composer inside ddev container (in Gitpod)

Since Gitpod removed slirp4netns as part of performance improvements,
MTU value should be aligned to the one in gitpod.io

Gitpod fixed it for docker - gitpod-io/gitpod#9356
and for docker-compose - gitpod-samples/template-docker-compose#4

ddev doesn't use Gitpod's custom docker-compose binary. Instead, ddev uses
its own docker-compose binary at /home/gitpod/.ddev/bin/docker-compose
ddev issue [WIP] - ddev/ddev#3766

Align the MTU value to the one that is set in Gitpod (1440)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant