Set rs.slaveOk() is not working via CLI?

Hi @Ramesh_Audireddy1,

Read preference is a client/driver option for routing requests, not a replica set configuration option.

If you want clients/drivers to use a secondary read preference, they need to specify this in their connection string or using a per-query/command option.

Regards,
Stennie