These results demonstrate that by regulating PGN level, the PGRP-LB enzyme is adjusting both immune response intensity and egg-laying rate to infection levels. Here, PGLYRP1 is linked to infection.