The problem of where to allocate a redundant component in a system in order to optimize the lifetime of a system is an important problem in reliability theory which also poses many interesting questions in mathematical statistics. We consider both active redundancy and standby redundancy, and investigate the problem of where to allocate a spare in a system in order to stochastically optimize the lifetime of the resulting system. Extensive results are obtained in particular for series and parallel systems.