Ensuring AETL is always up !

More
1 year 5 months ago - 1 year 5 months ago #24731 by prashant
Hellos,

IN below video , I showcase AETL + Always UP , this tool ensures that 
1. every time AETL is switched off , it's switched back on 
2. All relevant services are restarted as well
3. Personally I have found some of my python services don't run well with AETL agent and always crash , but run fine that they are running using AETL.
4. Obviously it's not sponsored ! I have been using this from around 6 months.

www.loom.com/share/3fcac4e9d1554ae492108...41-b64f-84a4bd08630a


Below is the script which we used to ensure all services are also stopped when AETL stops.

@echo off

:: Function to stop a service if it's running
call :stop_service aetlagent64
call :stop_service aetldirectorymonitor64

:: Wait briefly to ensure services have time to stop
timeout /t 2 /nobreak >nul

:: Display a message and exit without requiring user input
echo Services and processes have been stopped.
exit /b

:: Function to stop a service
:stop_service
sc query %1 | find "RUNNING" >nul
if %errorlevel% equ 0 (
    sc stop %1 >nul 2>&1
    if %errorlevel% neq 0 (
        echo Failed to stop service %1.
    )
) else (
    echo Service %1 is not running.
)
exit /b

 
Last edit: 1 year 5 months ago by prashant.
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #24732 by admin
Replied by admin on topic Ensuring AETL is always up !
Interesting video,

FYI agent does not run anything it just starts aetllcl.exe which does all the work.
Agent might fail when connection is lost to the repository database. 
It will try to reconnect automatically.
It will also write errors to the agent log located in the same directory.
We did a lot of testing to make sure that agent is always up.
aetllcl.exe might get stuck especially when running some external apps/scripts.
We recommend using timeouts for this kind of situations


 

Mike
ETL Architect
Last edit: 1 year 5 months ago by admin.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #24733 by prashant
Hi Mike,

In my case , it's always the python scripts and not AETL, causing issues.

1. Specially with few scripts where Selenium needs to manipulate windows , headless is not an option. 
2. Some regular python script also get stuck . I will try to use more timeout. 
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save