I installed a Horizon Server 2.x with stellar-core 19.2.0(Basic Validator), but unfortunately when I submit transactions (send), randomly (at 80%), I get 503 errors. I have the impression that the errors happen during the ingestion, which happens very often.
1/ How to solve this problem? 2/ How to configure to preserve always the last 6 months of history (rotate...) ?
Here is the configuration file:
User=stellar
Group=stellar
LimitNOFILE=8192
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=stellar-horizon
EnvironmentFile=/etc/default/stellar-horizon
WorkingDirectory=/var/lib/stellar
ExecStart=/usr/bin/stellar-horizon --per-hour-rate-limit 0
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=simple
/etc/default/stellar-horizon
NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015"
DATABASE_URL="dbname=horizon user=stellar host=/var/run/postgresql"
STELLAR_CORE_DATABASE_URL="dbname=stellar user=stellar host=/var/run/postgresql"
STELLAR_CORE_URL="http://127.0.0.1:11626"
HISTORY_ARCHIVE_URLS="http://history.stellar.org/prd/core-live/core_live_001/"
PORT=8000
PER_HOUR_RATE_LIMIT=0
#CATCHUP_RECENT=100000
#HISTORY_RETENTION_COUNT=100000
AUTOMATIC_MAINTENANCE_PERIOD=60
#PARALLEL_JOB_SIZE=100000
#HISTORY_STALE_THRESHOLD=
RETRIES=10
RETRY_BACKOFF_SECONDS=20
INGEST=true
STELLAR_CORE_BINARY_PATH=/usr/bin/stellar-core
CAPTIVE_CORE_CONFIG_APPEND_PATH=/etc/default/stellar-captive-core-stub.toml
LOG_FILE_PATH="/var/lib/stellar/stellar-core-{datetime:%Y-%m-%d_%H-%M-%S}.log"
NODE_IS_VALIDATOR=true
NODE_SEED="XXXXXXXXXXXXXX"