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

Add APCu host DNS cache #4

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Add APCu host DNS cache #4

merged 2 commits into from
Nov 12, 2021

Conversation

eddmann
Copy link
Member

@eddmann eddmann commented Nov 12, 2021

Within Lambda we are unable to easily cache DNS records as we do on conventional servers.
As each request creates a new connection, the amount of DNS queries we perform can mount up.
This issue looks to be causing issues under production load at this time.

This adds an application-level cache for storing the resolved IP of the desired host (env: CACHE_PDO_HOST_DNS) for a desired amount of time.

Within Lambda we are unable to easily cache DNS records as we do on conventional servers.
As each request creates a new connection, the amount of DNS queries we perform can mount up.
This issue looks to be causing issues under production load at this time.

This adds an application-level cache for storing the resolved IP of the desired host (env: CACHE_PDO_HOST_DNS) for a desired amount of time.
@tomcant tomcant merged commit e14b5ef into mybuilder-1.6 Nov 12, 2021
@tomcant tomcant deleted the apcu-dns-cache branch November 12, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants