From 0850fa3c27cee8ccfd34a976f9fc13aac6ec349d Mon Sep 17 00:00:00 2001 From: Sean Date: Sun, 17 Aug 2025 16:03:28 -0400 Subject: [PATCH] Update the Readme --- README.md | 118 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 62 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index e02228f..cf0a293 100644 --- a/README.md +++ b/README.md @@ -97,62 +97,7 @@ Check the status: sudo systemctl status mks.service Disable the service: sudo systemctl disable mks.service -# ARM64 Version of MarketData Feeds designed to run on Raspbian system on a PI 5 16G RAM, 256Gig U30 SD Card. - -TO-DO -1) MariaDb online -2) MarketDataServer - dotnet add package Microsoft.AspNet.WebApi.SelfHost --version 5.3.0 - dotnet add package System.ServiceModel.Primitives --version 4.0.0 - -Git Delete Remote Branch -git push --delete -git push origin --delete -git branch -r -git branch -l - -You can use the following commands to update the list of local branches from remote: -git fetch --prune - - -3) IPMonitor -4) Models - - - -****************************************************************************************************** -Adding notes on MariaDb as I plan to migrate the MySql over to one of the Raspberry PI 4 B's -https://hevodata.com/learn/mysql-to-mariadb/ - -Notes on HttpClient -https://josef.codes/you-are-probably-still-using-httpclient-wrong-and-it-is-destabilizing-your-software/ - - -******************************************************************************************************* - -ARM version of marketdata libraries. -sudo truncate syslog -- size 0 -more on syslog and journal -https://ubuntuforums.org/showthread.php?t=2495218 -https://stackoverflow.com/questions/16995425/how-does-cmd-dev-null-21-work - -journalctl --disk-usage # See log file disk use - sudo journalctl --vacuum-size=200M # Drop log file size to 200M, if possible. - sudo journalctl --vacuum-time=10d # Drop logs, over 10 days old - -DEV NULL -ping a.b.c > /dev/null 2>&1 - - -CRON SCHEDULE -sudo crontab -e - -** THE LATEST AND GREATEST IS ALWAYS AT THE BOTTOM - -Also note that 1>/dev/null is synonymous to, but more explicit than >/dev/null - - - +# Crontab for Production (Dia) Here is the official latest crontab. Adding the monthly jobs to run on the 17th Notice that the monthly jobs will all run on the 15th of the month at 00:00 (zero hour and zero minute=midnight) CalcSticker will also start on the 15th but 15 seconds past midnight. It will wait for the completion of the specified processes @@ -188,6 +133,9 @@ CRON_DIR_IPMONITOR=/opt/MarketData/IPMonitor 0 * * * * cd $CRON_DIR_IPMONITOR ; /opt/MarketData/IPMonitor/ipmonitor IPMONITOR /FORCE:true > /dev/null 2>&1 10,20,30,40,50 * * * * cd $CRON_DIR_IPMONITOR ; /opt/MarketData/IPMonitor/ipmonitor > /dev/null 2>&1 + +# Crontab for Adrastea (MariaDb Database Server) + The following is the production crontab for Adrastea to backup the database every saturday at noon. you can directly copy these lines into the cron schedule... 1) Stop the cron service. sudo service cron stop 2) Copy/Paste daya ... sudo crontab -e and then copy the below lines @@ -201,6 +149,64 @@ The following is the production crontab for Adrastea to backup the database ever CRON_DIR=/home/pi/ARM64/Scripts 0 12 * * 6 cd $CRON_DIR ; ./dump.sh > /dev/null 2>&1 +# Isonoe Backup Database Server +There is a backup MariaDb database server running on Isonoe. +The database is located on a USB drive on Isonoe at /mnt/mariadb +There is a dump.sh script on Adrastea /home/pi/Boneyard/Import that can be used to dump the database +There is also a send.sh script on Adrastea under /home/pi/Boneyard that can send the compressed backupdb.tar-gz file over to Isonoe +There is a receive.sh script on Isonoe under /mnt/mariadb that will receive the backupdb.tar.gz file from Adrastea. +1) First run the dump.sh script on Adrastea (/home/pi/Boneyard/Import/dump.sh) +2) Next run the receive.sh script on Isonoe (/mnt/mariadb/receive.sh) +3) Next run the send.sh script on Adrastea (/home/pi/Boneyard/Import/send.sh) +4) Finally, run the restoredbzip.sh script on Isonoe (/mnt/mariadb/restoredbzip.sh) + +Notes: There is a c++ program that performs the file transfer between Isonoe and Adrastea. + The program is maintained on the Gitea repo under CPP/sstp + The build project for this is maintained on Isonoe under /home/pi/CPP/sstp with libraries located under /home/pi/CPP/common + +# Miscellaneous Notes +TO-DO +1) MariaDb online +2) MarketDataServer + dotnet add package Microsoft.AspNet.WebApi.SelfHost --version 5.3.0 + dotnet add package System.ServiceModel.Primitives --version 4.0.0 + +Git Delete Remote Branch +git push --delete +git push origin --delete +git branch -r +git branch -l + +You can use the following commands to update the list of local branches from remote: +git fetch --prune + +****************************************************************************************************** +Adding notes on MariaDb as I plan to migrate the MySql over to one of the Raspberry PI 4 B's +https://hevodata.com/learn/mysql-to-mariadb/ + +Notes on HttpClient +https://josef.codes/you-are-probably-still-using-httpclient-wrong-and-it-is-destabilizing-your-software/ +******************************************************************************************************* +ARM version of marketdata libraries. +sudo truncate syslog -- size 0 +more on syslog and journal +https://ubuntuforums.org/showthread.php?t=2495218 +https://stackoverflow.com/questions/16995425/how-does-cmd-dev-null-21-work + +journalctl --disk-usage # See log file disk use + sudo journalctl --vacuum-size=200M # Drop log file size to 200M, if possible. + sudo journalctl --vacuum-time=10d # Drop logs, over 10 days old + +DEV NULL +ping a.b.c > /dev/null 2>&1 + + +CRON SCHEDULE +sudo crontab -e + +** THE LATEST AND GREATEST IS ALWAYS AT THE BOTTOM + +Also note that 1>/dev/null is synonymous to, but more explicit than >/dev/null