I have fixed the problem. the 5 seconds setting is a default db setting. we has change the setting as below:
DISCOURSE_DB_TIMEOUT: 10000
DISCOURSE_DB_CONNECT_TIMEOUT: 10
and more
we find the db is very slowly.
and we have use a new db on linux instead of the old one on windows.
thank you all the same. discourse is very wonderful.