After referring to this documentation, I set HISTORY_STALE_THRESHOLD to 0 to prevent 503 Historical DB is too stale error when I submit a transaction.
This stellar-core code says 0 is the default value in the option, meaning infinite(=never return to any stale error)
// in horizon.env
export HISTORY_STALE_THRESHOLD=0
However, the same error occurs.
Does anyone know how to avoid this error?