  Container technology, as the key enabler behind microservice architectures,
is widely applied in Cloud and Edge Computing. A long and continuous running of
operating system (OS) host-ing container-based services can encounter software
aging that leads to performance deterioration and even causes system fail-ures.
OS rejuvenation techniques can mitigate the impact of software aging but the
rejuvenation trigger interval needs to be carefully determined to reduce the
downtime cost due to rejuve-nation. This paper proposes a comprehensive
semi-Markov-based approach to quantitatively evaluate the effect of OS
reju-venation on the dependability and the performance of a con-tainer-based
service. In contrast to the existing studies, we nei-ther restrict the
distributions of time intervals of events to be exponential nor assume that
backup resources are always avail-able. Through the numerical study, we show
the optimal con-tainer-migration trigger intervals that can maximize the
de-pendability or minimize the performance of a container-based service.
