Skip to content

Instantly share code, notes, and snippets.

View onlinejudge95's full-sized avatar
🇮🇳
Those who say programming is no art, don't know the true meaning of it

onlinejudge95 onlinejudge95

🇮🇳
Those who say programming is no art, don't know the true meaning of it
View GitHub Profile

Background

While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size (/etc/nginx/nginx.conf) value from 32 to 64, but I don't understand why should I increase the value to 64.

References

References that have been read so far:

@onlinejudge95
onlinejudge95 / aproducer.py
Created October 17, 2019 20:18 — forked from dabeaz/aproducer.py
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 - https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
# aproducer.py
#
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler: