0
0
Nginxdevops~10 mins

Why tuning handles high traffic in Nginx - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the maximum number of worker connections in nginx.

Nginx
worker_connections [1];
Drag options to blanks, or click blank then click option'
A512
B1024
C2048
D256
Attempts:
3 left
💡 Hint
Common Mistakes
Using too low a number limits traffic handling capacity.
2fill in blank
medium

Complete the code to set the number of worker processes to match CPU cores.

Nginx
worker_processes [1];
Drag options to blanks, or click blank then click option'
Aauto
B1
C4
D8
Attempts:
3 left
💡 Hint
Common Mistakes
Setting a fixed number that doesn't match CPU cores.
3fill in blank
hard

Fix the error in the directive that sets the maximum number of open files.

Nginx
worker_rlimit_nofile [1];
Drag options to blanks, or click blank then click option'
A1024
B65536
C65535
D100000
Attempts:
3 left
💡 Hint
Common Mistakes
Using values too high or too low causing errors or limits.
4fill in blank
hard

Fill both blanks to configure nginx to use epoll and enable multi_accept.

Nginx
events {
    use [1];
    multi_accept [2];
}
Drag options to blanks, or click blank then click option'
Aepoll
Bon
Coff
Dkqueue
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong event method or turning multi_accept off.
5fill in blank
hard

Fill all three blanks to configure keepalive timeout and max requests.

Nginx
http {
    keepalive_timeout [1];
    keepalive_requests [2];
    client_max_body_size [3];
}
Drag options to blanks, or click blank then click option'
A65s
B100
C10m
D1m
Attempts:
3 left
💡 Hint
Common Mistakes
Setting too short timeouts or too small max body size.