From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34C7335A29E for ; Wed, 27 Aug 2025 14:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304919; cv=none; b=U/mgOqUY9c/XPNF+Y/BPZTmLCHcEqwpSwflEQEEql3MjphwaR8KS3RnghPTlhtKjFa4s7ACGEOmbfCBaPwjRxn0wY18DrvCbO+oOeRJNbk0U2gU//gQatuaHEwhi8VklT9dYTb79pydG9GzFdDVCm0mSM+SIIMEJoGB8MjXAiLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304919; c=relaxed/simple; bh=Xu86eLVAFWLC6AWNUUCkfOP7vP4cqwMbcJnWgm9+cd0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bH2Pu9e2zExRhQcjOpC68Piocfzo6pcylWvlMSahUEkk55bPnJrGz+9kMOvDV83nkyEPKQ4aoxxT/penA8DPyrRylpdTEHbJA6CgpZgQG7JG3MGcR3biIjZxl9Aga+MDJX4fYsEMLr5KUq4ZGxCe9PU3fnwLJluJHDSfPqN7Ap4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EoRe17Ps; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EoRe17Ps" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FE7DC4CEF0; Wed, 27 Aug 2025 14:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756304918; bh=Xu86eLVAFWLC6AWNUUCkfOP7vP4cqwMbcJnWgm9+cd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EoRe17PsOaV7wtsN/1VLmSFbuvn9bXiiKqPdauUs91EAlnyatttgLM4p/AWh8VI7a uPSLtY/V1zwv4G//8YZWSg3B8am+SRWxN+AKAQD4V7I1vJvtHE22Ehy6FnFEUDzpUC ExJZnFlWu9JIcKbkhBA0/W2rUGRpuhO9vBnpn7i+W5Brm03vFX/wfKr0sCZkZM3Nts fFyZM/yXxdIfhvBLXtoKKftg1iToakWIW0HLUGP+zMxz490yP+FwRjMMBGhgbZC8+i qQezCurCn1DB8bEuL4VwK61Vy3BC7GKflladYCwtC9x109VFHQJqLh4bMZ2EvQBU+u pllMUmbjDbEeQ== From: Chuck Lever To: Cc: Chuck Lever Subject: [PATCH v1 10/26] terraform/oci: Enable preemptible compute instances Date: Wed, 27 Aug 2025 10:28:05 -0400 Message-ID: <20250827142832.2629291-11-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250827142832.2629291-1-cel@kernel.org> References: <20250827142832.2629291-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever Enabling instance preemption allows the provider to destroy the instance if it needs the resources. The benefit is a 50% reduction in price. Typically, there's nothing on these instances that can't be re-cloned or reproduced. This should really be a Kconfig setting. Signed-off-by: Chuck Lever --- terraform/oci/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/terraform/oci/main.tf b/terraform/oci/main.tf index 1d2d0f82e00f..45a4b4bc0c63 100644 --- a/terraform/oci/main.tf +++ b/terraform/oci/main.tf @@ -37,6 +37,13 @@ resource "oci_core_instance" "kdevops_instance" { ssh_authorized_keys = file(var.ssh_config_pubkey_file) } + preemptible_instance_config { + preemption_action { + type = "TERMINATE" + preserve_boot_volume = false + } + } + preserve_boot_volume = false } -- 2.51.0