Hi,
Can someone give me steps to enable BPE in always on setup and steps to disable as well in case i have to rollback.
Enabling buffer pool extension is done simply by ALTER SERVER CONFIGURATION and it is done in the instance level and not related to the always on setup
ALTER SERVER CONFIGURATION
SET BUFFER POOL EXTENSION ON (FILENAME = 'F:\BP_CACHE\BufferPoolExtension.BPE',SIZE = 10 GB)
GO
Disabling is done in the same way
ALTER SERVER CONFIGURATION
SET BUFFER POOL EXTENSION OFF
GO
do i have to do failover of AG to do this change like we do in applying service packs.
NOTE! Microsoft explicitly recommend to restart the instance
After enabling buffer pool extension for the first time it is recommended to restart the SQL Server instance to get the maximum performance benefits.
In addition:
When disabled, the memory used to support the feature is not reclaimed until the instance of SQL Server is restarted. However, if the feature is re-enabled, the memory will be reused without restarting the instance.
Nice tutorial: https://www.sqlshack.com/buffer-pool-extension-bpe-works/