Add get_instance_id
Set dsmode based on meta key in the server context