Speed - 2x automations on one instance or two?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

So, when I add too many rows to my automation it makes it less profitable as speed is important.

Should I

A) Have two automations on one instance, Automation 1 back rows 1-6, Automation 2 back rows 7-12

OR

B) Have the 2 automations on 2 separate instances?
User avatar
jamesedwards
Posts: 4262
Joined: Wed Nov 21, 2018 6:16 pm

Fugazi wrote:
Wed Jan 29, 2025 5:59 pm
So, when I add too many rows to my automation it makes it less profitable as speed is important.

Should I

A) Have two automations on one instance, Automation 1 back rows 1-6, Automation 2 back rows 7-12

OR

B) Have the 2 automations on 2 separate instances?

Option C strip down your automation. Reduce the number of rules. Reduce the number of rules triggered by time. Reduce the amount of log data being created.
Option D invest in a faster PC.
Option E run automations on more than one PC.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

jamesedwards wrote:
Wed Jan 29, 2025 6:08 pm
Fugazi wrote:
Wed Jan 29, 2025 5:59 pm
So, when I add too many rows to my automation it makes it less profitable as speed is important.

Should I

A) Have two automations on one instance, Automation 1 back rows 1-6, Automation 2 back rows 7-12

OR

B) Have the 2 automations on 2 separate instances?

Option C strip down your automation. Reduce the number of rules. Reduce the number of rules triggered by time. Reduce the amount of log data being created.
Option D invest in a faster PC.
Option E run automations on more than one PC.
Honestly, needs all the components. I'm using BA's best VPN (I know cheaper ones are out there but its been 100% uptime)
Last edited by Fugazi on Wed Jan 29, 2025 6:15 pm, edited 1 time in total.
Michael5482
Posts: 1693
Joined: Fri Jan 14, 2022 8:11 pm

Fugazi wrote:
Wed Jan 29, 2025 5:59 pm
So, when I add too many rows to my automation it makes it less profitable as speed is important.

Should I

A) Have two automations on one instance, Automation 1 back rows 1-6, Automation 2 back rows 7-12

OR

B) Have the 2 automations on 2 separate instances?
Possibly better testing both by setting a signal up to log then check the timings v each other instead of someone having a guess 1 second is an absolute lifetime.
Anbell
Posts: 2401
Joined: Fri Apr 05, 2019 2:31 am

jamesedwards wrote:
Wed Jan 29, 2025 6:08 pm
Fugazi wrote:
Wed Jan 29, 2025 5:59 pm
So, when I add too many rows to my automation it makes it less profitable as speed is important.

Should I

A) Have two automations on one instance, Automation 1 back rows 1-6, Automation 2 back rows 7-12

OR

B) Have the 2 automations on 2 separate instances?

Option C strip down your automation. Reduce the number of rules. Reduce the number of rules triggered by time. Reduce the amount of log data being created.
Option D invest in a faster PC.
Option E run automations on more than one PC.
Option F: Optimize Restrict Refresh
User avatar
ShaunWhite
Posts: 10538
Joined: Sat Sep 03, 2016 3:42 am

What do you get if you psping from your vps to api.betfair.com ?

Another possible is to run exactly the same automation on several instances, the idea being that they run out of sync and one of them is always acts before the others. Picture a three-phase power supply vs single-phase. I managed to find another 10-15% that way. But it'll depend on how Guardian has been written wrt local caching of orders in transit.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

ShaunWhite wrote:
Thu Jan 30, 2025 11:23 am
What do you get if you psping from your vps to api.betfair.com ?

Another possible is to run exactly the same automation on several instances, the idea being that they run out of sync and one of them is always acts before the others. Picture a three-phase power supply vs single-phase. I managed to find another 10-15% that way. But it'll depend on how Guardian has been written wrt local caching of orders in transit.
Could cause carnage between my bots with transaction count as they'll annoy the shit out of each other :lol: BUT it may actually mean nobody else can get in on the action. This has definitely got me thinking going to give it a small test run later
User avatar
ShaunWhite
Posts: 10538
Joined: Sat Sep 03, 2016 3:42 am

Fugazi wrote:
Thu Jan 30, 2025 1:00 pm
Could cause carnage between my bots with transaction count as they'll annoy the shit out of each other :lol:
As far as I know Guardian can process a rule set every 20ms whilst transactions take over 100ms to be acknowledged. If it doesn't double up now then it shouldn't if a version of itself ran less than 20ms ago. I'd imagine a ruleset is executed in well under a millisecond. BA is compiled code as is mine and I process a market in about 30µs so two instances processing at exactly the same time should be highly unlikely.

Even if the code doesn't normally facilitate it via locking or similar then it might work? The odds are probably iro 20ms/50µs (400/1) you'll start them both absolutely in sync?
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

ShaunWhite wrote:
Thu Jan 30, 2025 2:00 pm
Fugazi wrote:
Thu Jan 30, 2025 1:00 pm
Could cause carnage between my bots with transaction count as they'll annoy the shit out of each other :lol:
As far as I know Guardian can process a rule set every 20ms whilst transactions take over 100ms to be acknowledged. If it doesn't double up now then it shouldn't if a version of itself ran less than 20ms ago. I'd imagine a ruleset is executed in well under a millisecond. BA is compiled code as is mine and I process a market in about 30µs so two instances processing at exactly the same time should be highly unlikely.

Even if the code doesn't normally facilitate it via locking or similar then it might work? The odds are probably iro 20ms/50µs (400/1) you'll start them both absolutely in sync?
Where it collides is when the ladder moves x ticks in x seconds (its a bit more complex than this as obviously you just change the tick movement +1). So an extra bet messes with ladder movement. But so far tested on a few races and massively increased roi (tiny sample ofc)

However Ive now quadrupled my transaction count because of conflicts. But thats the least of my worries and I'm sure I can deconflict that at a later point)

I contacted Betfair to see if any wriggle room on my transaction limits .. a firm no :lol:
User avatar
ShaunWhite
Posts: 10538
Joined: Sat Sep 03, 2016 3:42 am

Fugazi wrote:
Thu Jan 30, 2025 2:13 pm
I contacted Betfair to see if any wriggle room on my transaction limits .. a firm no :lol:
They clamped down years ago. Even those who where good enough customers to be on unlimited trn suddenly lost that. Going over doesn't necessarily mean you pay, commission paid offsets it.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

ShaunWhite wrote:
Thu Jan 30, 2025 3:51 pm
Fugazi wrote:
Thu Jan 30, 2025 2:13 pm
I contacted Betfair to see if any wriggle room on my transaction limits .. a firm no :lol:
They clamped down years ago. Even those who where good enough customers to be on unlimited trn suddenly lost that. Going over doesn't necessarily mean you pay, commission paid offsets it.
Maybe I try run some on Betdaq too....
User avatar
ShaunWhite
Posts: 10538
Joined: Sat Sep 03, 2016 3:42 am

Fugazi wrote:
Thu Jan 30, 2025 2:13 pm
. But so far tested on a few races and massively increased roi (tiny sample ofc)
I doubt it will last, the most you'll gain on avg is 10ms. Maybe 1% max.
The 10-15% I referred to was doing that with all my strategies, and they're very latency sensitive but not all are so much. The limiting issue becomes the number of connections you can have.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

ShaunWhite wrote:
Thu Jan 30, 2025 4:54 pm
Fugazi wrote:
Thu Jan 30, 2025 2:13 pm
. But so far tested on a few races and massively increased roi (tiny sample ofc)
I doubt it will last, the most you'll gain on avg is 10ms. Maybe 1% max.
The 10-15% I referred to was doing that with all my strategies, and they're very latency sensitive but not all are so much. The limiting issue becomes the number of connections you can have.
As I'm only on £1 stake, seems ive managed to scale to £2 this way without the usual reduction of profit
Post Reply

Return to “Bet Angel - Automation”