Skip to content

Commit a665551

Browse files
所属
1 parent d3d9d25 commit a665551

File tree

2 files changed

+63
-171
lines changed

2 files changed

+63
-171
lines changed

.obsidian/workspace.json

Lines changed: 33 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,41 @@
11
{
22
"main": {
3-
"id": "fa60888132233ae0",
3+
"id": "f7473c8bec0af0c0",
44
"type": "split",
55
"children": [
66
{
7-
"id": "5838d1b0ce11f8e6",
7+
"id": "633f016402ca10fc",
88
"type": "tabs",
99
"children": [
1010
{
11-
"id": "c7d295aae712f97f",
11+
"id": "f01a2ddcd6c4d1bb",
1212
"type": "leaf",
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "架构/架构设计.md",
16+
"file": "middleware/nginx.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "架构设计"
21+
"title": "nginx"
2222
}
23-
<<<<<<< HEAD
2423
}
2524
]
26-
=======
27-
},
28-
{
29-
"id": "20d96e3062f4291e",
30-
"type": "leaf",
31-
"state": {
32-
"type": "markdown",
33-
"state": {
34-
"file": "架构/架构设计.md",
35-
"mode": "source",
36-
"source": false
37-
},
38-
"icon": "lucide-file",
39-
"title": "架构设计"
40-
}
41-
},
42-
{
43-
"id": "b7d07db209d422b0",
44-
"type": "leaf",
45-
"state": {
46-
"type": "markdown",
47-
"state": {
48-
"file": "架构/分布式.md",
49-
"mode": "source",
50-
"source": false
51-
},
52-
"icon": "lucide-file",
53-
"title": "分布式"
54-
}
55-
},
56-
{
57-
"id": "420f6196d6d3217b",
58-
"type": "leaf",
59-
"state": {
60-
"type": "markdown",
61-
"state": {
62-
"file": "go/go_package.md",
63-
"mode": "source",
64-
"source": false
65-
},
66-
"icon": "lucide-file",
67-
"title": "go_package"
68-
}
69-
}
70-
],
71-
"currentTab": 3
72-
>>>>>>> 4c6aa2b40d938ef60263e8b0a1d6253dc40d00d4
7325
}
7426
],
7527
"direction": "vertical"
7628
},
7729
"left": {
78-
"id": "984ded355ab1126f",
30+
"id": "abd5d96bf24d0f65",
7931
"type": "split",
8032
"children": [
8133
{
82-
"id": "b68cb3808bf8406e",
34+
"id": "5b4ab387230b9df4",
8335
"type": "tabs",
8436
"children": [
8537
{
86-
"id": "5c8b7f1f1f2346fa",
38+
"id": "8c80d93c8dfd9929",
8739
"type": "leaf",
8840
"state": {
8941
"type": "file-explorer",
@@ -96,30 +48,30 @@
9648
}
9749
},
9850
{
99-
"id": "eb71ac99f702581a",
51+
"id": "a4d96fea35df1148",
10052
"type": "leaf",
10153
"state": {
10254
"type": "search",
10355
"state": {
104-
"query": "弹力",
56+
"query": "",
10557
"matchingCase": false,
10658
"explainSearch": false,
10759
"collapseAll": false,
10860
"extraContext": false,
10961
"sortOrder": "alphabetical"
11062
},
11163
"icon": "lucide-search",
112-
"title": "搜索"
64+
"title": "Search"
11365
}
11466
},
11567
{
116-
"id": "f6e422ca2c0d2f52",
68+
"id": "f439de2486b8910b",
11769
"type": "leaf",
11870
"state": {
11971
"type": "bookmarks",
12072
"state": {},
12173
"icon": "lucide-bookmark",
122-
"title": "书签"
74+
"title": "Bookmarks"
12375
}
12476
}
12577
]
@@ -129,20 +81,20 @@
12981
"width": 300
13082
},
13183
"right": {
132-
"id": "e7caec816f7dccec",
84+
"id": "fbec81e268026dc0",
13385
"type": "split",
13486
"children": [
13587
{
136-
"id": "6dda2822eaf66a8c",
88+
"id": "5c8b9d0e95241a93",
13789
"type": "tabs",
13890
"children": [
13991
{
140-
"id": "f5d424bebab9d9a4",
92+
"id": "f5c18f865b7a3d8f",
14193
"type": "leaf",
14294
"state": {
14395
"type": "backlink",
14496
"state": {
145-
"file": "go/go_package.md",
97+
"file": "middleware/nginx.md",
14698
"collapseAll": false,
14799
"extraContext": false,
148100
"sortOrder": "alphabetical",
@@ -152,25 +104,25 @@
152104
"unlinkedCollapsed": true
153105
},
154106
"icon": "links-coming-in",
155-
"title": "go_package 的反向链接列表"
107+
"title": "Backlinks for nginx"
156108
}
157109
},
158110
{
159-
"id": "3dc59a469e16eeb3",
111+
"id": "fcc31de05f69e6a9",
160112
"type": "leaf",
161113
"state": {
162114
"type": "outgoing-link",
163115
"state": {
164-
"file": "linux/perf.adoc",
116+
"file": "middleware/nginx.md",
165117
"linksCollapsed": false,
166118
"unlinkedCollapsed": true
167119
},
168120
"icon": "links-going-out",
169-
"title": "perf 的出链列表"
121+
"title": "Outgoing links from nginx"
170122
}
171123
},
172124
{
173-
"id": "27717574aa086f28",
125+
"id": "29d859957f2f2d61",
174126
"type": "leaf",
175127
"state": {
176128
"type": "tag",
@@ -181,128 +133,44 @@
181133
"searchQuery": ""
182134
},
183135
"icon": "lucide-tags",
184-
"title": "标签"
136+
"title": "Tags"
185137
}
186138
},
187139
{
188-
"id": "c65fbe9a811375ef",
140+
"id": "72219f064c10dfb9",
189141
"type": "leaf",
190142
"state": {
191143
"type": "outline",
192144
"state": {
193-
<<<<<<< HEAD
194-
"file": "架构/架构设计.md",
195-
=======
196-
"file": "go/go_package.md",
197-
>>>>>>> 4c6aa2b40d938ef60263e8b0a1d6253dc40d00d4
145+
"file": "middleware/nginx.md",
198146
"followCursor": false,
199147
"showSearch": false,
200148
"searchQuery": ""
201149
},
202150
"icon": "lucide-list",
203-
<<<<<<< HEAD
204-
"title": "Outline of 架构设计"
205-
=======
206-
"title": "go_package 的大纲"
207-
>>>>>>> 4c6aa2b40d938ef60263e8b0a1d6253dc40d00d4
151+
"title": "Outline of nginx"
208152
}
209153
}
210-
],
211-
"currentTab": 3
154+
]
212155
}
213156
],
214157
"direction": "horizontal",
215-
"width": 300
158+
"width": 300,
159+
"collapsed": true
216160
},
217161
"left-ribbon": {
218162
"hiddenItems": {
219-
"obsidian-excalidraw-plugin:New drawing": false,
220163
"switcher:Open quick switcher": false,
221164
"graph:Open graph view": false,
222165
"canvas:Create new canvas": false,
223166
"daily-notes:Open today's daily note": false,
224167
"templates:Insert template": false,
225-
"command-palette:Open command palette": false
168+
"command-palette:Open command palette": false,
169+
"obsidian-excalidraw-plugin:New drawing": false
226170
}
227171
},
228-
<<<<<<< HEAD
229-
"active": "5c8b7f1f1f2346fa",
230-
"lastOpenFiles": [
231-
"架构/分布式.md",
232-
"linux/memory.md",
233-
"db/DBA(Database administrator).md",
234-
"k8s/kubernetes.md",
235-
"calico/calico.md",
236-
"架构/架构设计.md",
237-
"middleware/nginx.md",
238-
"linux/algorithm.md",
239-
"doc/readme.md",
240-
"containerd/OverlayFS.md",
241-
"containerd/docker.md",
242-
"containerd/containerd.md",
243-
"go/go.md",
244-
"go/高并发.md",
245-
"eBPF/ebpf.md",
246-
"eBPF/bpftrace.md",
247-
"eBPF/bcc.md",
248-
"calico/calico架构.md",
249-
"calico/calicoctl.md",
250-
=======
251-
"active": "420f6196d6d3217b",
172+
"active": "f01a2ddcd6c4d1bb",
252173
"lastOpenFiles": [
253-
"go/go_module.md",
254-
"go/go.md",
255-
"架构/知识学习模板.md",
256-
"架构/分布式.md",
257-
"middleware/redis.md",
258-
"eBPF/ebpf.md",
259-
"eBPF/bpftrace.md",
260-
"k8s/kubernetes.md",
261-
"containerd/docker.md",
262-
"架构/架构设计.md",
263-
"calico/calico.md",
264-
"架构/().md",
265-
"go/高并发.md",
266-
"go/go_package.md",
267-
"go/gRPC.md",
268-
"go/memory.md",
269-
"calico/calico架构.md",
270-
"middleware/etcd.md",
271-
"db/DBA(Database administrator).md",
272-
"linux/memory.md",
273-
"linux/linux.md",
274-
"linux/Pasted image 20250430140606.png.md",
275-
"linux/perf.md",
276-
"k8s/kube_state_metirc.md",
277-
"k8s/kube_prometheus.md",
278-
"k8s/harbor.md",
279-
>>>>>>> 4c6aa2b40d938ef60263e8b0a1d6253dc40d00d4
280-
"k8s/attachments/Pasted image 20250430202140.png",
281-
"k8s/attachments/Pasted image 20250430202042.png",
282-
"k8s/attachments/Pasted image 20250430201959.png",
283-
"k8s/attachments/Pasted image 20250430201347.png",
284-
"k8s/attachments/Pasted image 20250430201322.png",
285-
"k8s/attachments/Pasted image 20250430201223.png",
286-
"k8s/attachments/Pasted image 20250430201154.png",
287-
"k8s/attachments/Pasted image 20250430201152.png",
288-
"k8s/attachments/Pasted image 20250430201106.png",
289-
"k8s/others.md",
290-
"go/go_module.md",
291-
"go/go_package.md",
292-
"go/gRPC.md",
293-
"README.md",
294-
"架构/attachments/Pasted image 20250430151319.png",
295-
"架构/attachments",
296-
"架构",
297-
"linux/Pasted image 20250430140606.png.md",
298-
"k8s/harbor.md",
299-
"k8s/components/service.md~",
300-
"k8s/components/pod.md~",
301-
"harbor/harbor.md~",
302-
"containerd/containerd.md~",
303-
"k8s/components/ingress.md~",
304-
"k8s/components/cadvisor.md~",
305-
"k8s/components/controller-manager.md~",
306-
"k8s/components/attachments"
174+
"架构/知识学习模板.md"
307175
]
308176
}

middleware/nginx.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,37 @@ location @other {
310310
}
311311
```
312312
313+
### 内存及磁盘资源的分配
313314
314-
315-
316-
317-
318-
319-
315+
*HTTP包体只存储到磁盘文件中*
316+
```bash
317+
client_body_in_file_only on|clean|off;
318+
```
319+
当值为非off时,用户请求中的HTTP包体一律存储到磁盘文件中,即使只有0字节也会存储为文件。当请求结束时,如果配置为on,则这个文件不会被删除(该配置一般用于调试、
320+
定位问题),但如果配置为clean,则会删除该文件。
321+
*HTTP包体尽量写入到一个内存buffer中*
322+
```bash
323+
client_body_in_single_buffer on|off;
324+
```
325+
用户请求中的HTTP包体一律存储到内存buffer中。当然,如果HTTP包体的大小超过了下面client_body_buffer_size设置的值
326+
*存储HTTP头部的内存buffer大小*
327+
```bash
328+
client_header_buffer_size size;
329+
# eg
330+
client_header_buffer_size 1k;
331+
```
332+
*存储超大HTTP头部的内存buffer大小*
333+
```bash
334+
large_client_header_buffers number size;
335+
```
336+
*存储HTTP包体的内存buffer大小*
337+
```bash
338+
client_body_buffer_size size;
339+
```
340+
*HTTP包体的临时存放目录*
341+
```bash
342+
client_body_temp_path dir-path[level1[level2[level3]]]
343+
```
320344
321345
322346

0 commit comments

Comments
 (0)