1.StopanddisableMentat$sudosystemctlstopwarden_filer_cesnet_receiver.service$sudomentat-controller.py--command stop$sudomentat-controller.py--command disable2.StopApache$sudosystemctlstopapache2###TherecanbenoDBwritesbeyondthispointasweareabouttodropindicesensuringdataintegrity!3.psqlmentat_eventsDROPINDEXevents_detecttime_idx;DROPINDEXevents_combined_idx;DROPINDEXevents_cesnet_storagetime_idx;DROPINDEXevents_cesnet_eventseverity_idx;ALTERTABLEeventsDROPCONSTRAINTevents_pkey;VACUUMFREEZE;CHECKPOINT;4.Stoppostgresql$sudosystemctlstoppostgresql5.InstallPostgreSQL12$sudoapt-getupdate$sudoapt-getinstallpostgresql-12postgresql-12-ip4rpostgresql-server-dev-12postgresql-client-126.Migration$sudopg_lsclustersVerClusterPortStatusOwnerDatadirectoryLogfile11main5432onlinepostgres/var/lib/postgresql/11/main/var/log/postgresql/postgresql-11-main.log12main5433onlinepostgres/var/lib/postgresql/12/main/var/log/postgresql/postgresql-12-main.log$sudosystemctlstoppostgresql$sudopg_dropcluster12main$sudopg_lsclustersVerClusterPortStatusOwnerDatadirectoryLogfile11main5432downpostgres/var/lib/postgresql/11/main/var/log/postgresql/postgresql-11-main.log#Thiswillrequire*temporarily*settingwal_levelto'logical'(inpostgresql.conf)-itissetto'minimal'ifyoufollowedconfigurationadvicefromdocs#Alternativelyonecanommitthe--link parameter, but that requires free space for a 1:1 copy and of course also takes much longer$sudopg_upgradecluster--method=upgrade --link 11 main$sudopg_dropcluster11main7.RemovePostgreSQL11$sudoapt-getremove--purge postgresql-11 postgresql-client-11 postgresql-server-dev-11 postgresql-11-ip4r postgresql-9.4 postgresql-9.5 postgresql-9.6 postgresql-108.StartPostgreSQL$sudosystemctlstartpostgresql9.IndicesREINDEXDATABASEmentat_events;ALTERTABLEeventsADDPRIMARYKEY(id);CREATEINDEXIFNOTEXISTSevents_detecttime_idxONeventsUSINGBTREE(detecttime);CREATEINDEXIFNOTEXISTSevents_cesnet_storagetime_idxONeventsUSINGBTREE(cesnet_storagetime);CREATEINDEXIFNOTEXISTSevents_cesnet_eventseverity_idxONeventsUSINGBTREE(cesnet_eventseverity)WHEREcesnet_eventseverityISNOTNULL;CREATEINDEXIFNOTEXISTSevents_combined_idxONeventsUSINGGIN(category,node_name,protocol,source_port,target_port,source_type,target_type,node_type,cesnet_resolvedabuses,cesnet_inspectionerrors);CHECKPOINT;ANALYZE;10.StartMentat&Apache$sudomentat-controller.py--command enable$sudomentat-controller.py--command start$sudosystemctlstartapache2$sudosystemctlstartwarden_filer_cesnet_receiver.service
I have just added the documentation snippet regarding the PostgreSQL upgrade provided by Radko Krkoš to main project documentation. It will be available on Alchemist server after next build.
This issue can be closed now, there is no other work to do regarding this...I hope.
TLDR conclusion:
A speedup is observable in sequential scan queries (i.e. IP address search) of up to 10%. We attribute this to JIT compiler making the <ip> && ANY({source,target}_ip) more efficient (as it should per documentation).
TLDR conclusion:
A speedup is observable in sequential scan queries (i.e. IP address search) of up to 10%. We attribute this to JIT compiler making the <ip> && ANY({source,target}_ip) more efficient (as it should per documentation).