Skip to content

Commit

Permalink
config, planner: Change prepared-plan-cache.capacity default size fro…
Browse files Browse the repository at this point in the history
…m 100 to 1000 (pingcap#28984)
  • Loading branch information
shaoxiqian authored Nov 1, 2021
1 parent db9592d commit db60f12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ var defaultConf = Config{
},
PreparedPlanCache: PreparedPlanCache{
Enabled: false,
Capacity: 100,
Capacity: 1000,
MemoryGuardRatio: 0.1,
},
OpenTracing: OpenTracing{
Expand Down
2 changes: 1 addition & 1 deletion config/config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ header-timeout = 5

[prepared-plan-cache]
enabled = false
capacity = 100
capacity = 1000
memory-guard-ratio = 0.1

[opentracing]
Expand Down
2 changes: 1 addition & 1 deletion planner/core/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
// The value is false unless "prepared-plan-cache-enabled" is true in configuration.
preparedPlanCacheEnabledValue int32 = 0
// PreparedPlanCacheCapacity stores the global config "prepared-plan-cache-capacity".
PreparedPlanCacheCapacity uint = 100
PreparedPlanCacheCapacity uint = 1000
// PreparedPlanCacheMemoryGuardRatio stores the global config "prepared-plan-cache-memory-guard-ratio".
PreparedPlanCacheMemoryGuardRatio = 0.1
// PreparedPlanCacheMaxMemory stores the max memory size defined in the global config "performance-server-memory-quota".
Expand Down

0 comments on commit db60f12

Please sign in to comment.