Speed up your Astaro proxy

Voor de astaro gebruikers onder ons, vanaf versie 8.1 kun je via SSH een copy van de categorization database lokaal zetten, waardoor de lookups veel sneller gaan.

Dat kun je op deze manier doen:

1) enable SSH for both loginuser && root in the Management > System Settings > Shell Access
2) ssh to ASG and login with loginuser
3) su root
4) cc set http sc_local_db [Your Choice] (without the []) for me its: mem
5) /var/mdw/scripts/httpproxy restart
6) wait until it complete downloading ~300Mb (for me it downloaded at 8Mbps).

7) Enjoy,

 

Edit:

Check the settings:

cc get http sc_local_db

Should result in:
http->sc_local_db = “mem”

Eventually I chose the option ‘disk’, because ‘mem’ too often claims disk-cache. And there is almost no noticeable performance difference.

Edit:

Still wasn’t satisfied with the swap usage. I found an other tweak that migth prevent the unnecessary swapping. In addition to that I switched back to the ‘mem’ option for the categorization database. ‘And now we wait….’