mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-05 23:13:08 +00:00
Adjust autoclient speed parameters
This commit is contained in:
parent
4920229cb5
commit
ea686388a4
@ -66,9 +66,17 @@ namespace AutoClient
|
||||
private (uint, uint) GetDurability()
|
||||
{
|
||||
(uint, uint)[] options = [
|
||||
(4, 1),
|
||||
(4, 2),
|
||||
(5, 1),
|
||||
(5, 2),
|
||||
(10, 5),
|
||||
(6, 1),
|
||||
(6, 2),
|
||||
(6, 3),
|
||||
(10, 2),
|
||||
(10, 4),
|
||||
(20, 2),
|
||||
(20, 4),
|
||||
(20, 10)
|
||||
];
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ namespace AutoClient
|
||||
"/root/codex-testnet-starter/scripts/eth_8.address";
|
||||
|
||||
[Uniform("slowModeDelayMinutes", "smdm", "SLOWMODEDELAYMINUTES", false, "When contract failure threshold is reached, slow down process for each file by this amount of minutes.")]
|
||||
public int SlowModeDelayMinutes { get; set; } = 60 * 1;
|
||||
public int SlowModeDelayMinutes { get; set; } = 30 * 1;
|
||||
|
||||
public string LogPath
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
if (slowMode)
|
||||
{
|
||||
recoveryCount++;
|
||||
if (recoveryCount > 3)
|
||||
if (recoveryCount > 2)
|
||||
{
|
||||
Log("Recovery limit reached. Exiting slow mode.");
|
||||
slowMode = false;
|
||||
@ -30,7 +30,7 @@
|
||||
public void OnFailure()
|
||||
{
|
||||
failureCount++;
|
||||
if (failureCount > 3 && !slowMode)
|
||||
if (failureCount > 5 && !slowMode)
|
||||
{
|
||||
Log("Failure limit reached. Entering slow mode.");
|
||||
slowMode = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user