If this number is negative, reduce the innodb_buffer_pool_size until the join_buffer_size turns positive, but allocate approximately from between 25%-50% of memory to the innodb_buffer_pool_size if the database is hosted on the Cacti server, or upto 80% of the systems memory if the database is separate from the Cacti web server.However, try to not go below the default of 262,144.When performing joins, if they are below this size, they will be kept in memory and never written to a temporary file.As this is a per connection memory allocation, care must be taken not to increase it too high.The sum of the join_buffer_size + sort_buffer_size + read_buffer_size + read_rnd_buffer_size + thread_stack + binlog_cache_size + Core MySQL/MariaDB memory should be below 80% if the database is hosted on the Cacti web server and less if you intend to have very large RRDfiles or hundreds of thousands to millions long term.
Om detta tal är negativt, minska innodb_buffer_pool_size tills join_buffer_size blir positivt, men allokera ungefär mellan 25%-50% minne till innodb_buffer_pool_size om databasen är hostad på Cacti-servern, eller upp till 80% o f systemminnet om databasen är separat från Cacti-webbservern.Försök dock att inte gå under standardvärdet på 262 144.När du utför sammankopplingar, om de är mindre än denna storlek, kommer de att hållas i minnet och aldrig skrivas till en tillfällig fil.Eftersom detta är en minnesallokering per anslutning måste man se till att inte öka den för mycket.Summan av join_buffer_size + sort_buffer_size + read_buffer_size + read_rnd_buffer_size + thread_stack + binlog_cache_size + Core MySQL/MariaDB-minne bör vara under 80% i om databasen är värd på Cacti-webbservern och mindre om du tänker ha mycket stora RRD-filer eller hundratusentals till miljoner på lång sikt.