adjusting queue max size and index policy