2

我有一个使用Amazing Linux 2. 在我的/var/log/web.stdout.log,我有:

Jul 13 20:47:34 ip-172-31-11-53 web: [2020-07-13 20:47:34 +0000] [1531] [INFO] Worker exiting (pid: 1531)
Jul 13 20:47:34 ip-172-31-11-53 web: Loading generator
Jul 13 20:47:34 ip-172-31-11-53 web: cache_dir /tmp/downloads/models
Jul 13 20:47:34 ip-172-31-11-53 web: using device: cpu
Jul 13 20:47:35 ip-172-31-11-53 web: [2020-07-13 20:47:35 +0000] [1576] [INFO] Booting worker with pid: 1576
Jul 13 20:47:39 ip-172-31-11-53 web: Some weights of GPT2LMHeadModel were not initialized from the model checkpoint at distilgpt2 and are newly initialized: ['transformer.h.0.attn.masked_bias', 'transformer.h.1.attn.masked_bias', 'transformer.h.2.attn.masked_bias', 'transformer.h.3.attn.masked_bias', 'transformer.h.4.attn.masked_bias', 'transformer.h.5.attn.masked_bias']
Jul 13 20:47:39 ip-172-31-11-53 web: You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Jul 13 20:48:05 ip-172-31-11-53 web: [2020-07-13 20:48:05 +0000] [3858] [CRITICAL] WORKER TIMEOUT (pid:1576)
Jul 13 20:48:05 ip-172-31-11-53 web: [2020-07-13 20:48:05 +0000] [1576] [INFO] Worker exiting (pid: 1576)

这表示 20 秒超时。但是,在 中.platform/hooks/nginx/conf.d/timeout.conf,我有:

proxy_connect_timeout 600s;
proxy_send_timeout 600s; 
proxy_read_timeout 600s; 
fastcgi_send_timeout 600s; 
fastcgi_read_timeout 600s;

这应该给出 600 秒的超时时间,但可惜 - 没有。我究竟做错了什么?

4

1 回答 1

1

timeout.conf应该在:

.platform/nginx/conf.d/timeout.conf

如此处所述

但是你有它在hooks文件夹中:

.platform/hooks/nginx/conf.d/timeout.conf

这可以解释为什么它们没有被应用。仍然可能有其他原因,但错误的文件夹是目前很明显的一个。

于 2020-07-13T21:17:40.880 回答