# Configuring LSA on Gateway Servers for Optimizing Events

Perform the following steps to configure the LSA client on Gateway servers to receive optimal event notifications.

Note: The Gateway server and the accessing server should have the same LSA version.

1. Browse to the LSA_HOME/Conf directory and open the `LSA.conf` file.
2. In the `LSA.conf` file, search for `events_callback_at_once_vmware` field.
3. Set the value to `1` in the `events_callback_at_once_vmware` field.

   If you want to disable event optimization, set this value to `0`. By default, this value is set to `0`.

4. Save and close the `LSA.conf` file.
   Note: The CIM Provider changes are also required for this to be effective.
5. Restart the LSA Service.

Parent topic: Optimizing Event Notifications