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 EB4C323BD04 for ; Thu, 4 Sep 2025 15:15:33 +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=1756998934; cv=none; b=MAQtERv7t2KytP8AK0t/HCuu6ZNo5KH9jk6lKcFMIdoVjcpUjdZBWjo4LqF0zwrTT5ktuZS9gtKGE5h4iUX39wj1bQM7bvscTkDNmI5RgIWCZ4+YFEcbpfQMHjgDsZRTzzBDh55d4rgLG5tI8u0FmfFbO9HqEKsyr2t5Sg7jZ0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756998934; c=relaxed/simple; bh=3UkFpaABiZ0I8WpY66ksPcwyIwUNCeG2zYh7MlKoMIU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lQkbkFp/d7SMiQd2zzCD+DU5v8MvUzJZe5ttdb/v8k3WwDSh9A36+asmDIOgAE+TmK06bxln/HJP7NeowTDQhnA4HHCtabLoDe9UNvQPhOwG68bIr1awbpyaxomK7e4A0Lc9sRRPvg8A6l2HYCuezsBDbKHw6TzNo20edVVD6sQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=phdrpNSM; 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="phdrpNSM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45309C4CEF1; Thu, 4 Sep 2025 15:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756998933; bh=3UkFpaABiZ0I8WpY66ksPcwyIwUNCeG2zYh7MlKoMIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=phdrpNSMvELgScUu1FjoS0UUTAVy/ACrHiHo0CXJJeAAmd9tHr4YfWnKY9olQZIjX vib0AxPHgMibCLVZ9s4Nz+86sx9c6JySG44sfp8kxLXghxeFGoD8xftkFKdE4328/q d5bA0Uu0aWLWIwHkXSHL6QmNlg+bvKjuCC2wksv7Q0oVNEgVDqmJtOJe4cIkG2dVEu PFLjSIikLR4tRvZL6D9YuMhS/7Z21WX9DTcnwhau37d2wE9WwUCxf5TWQ8CfrJmh8I RAX6iQcM0lsxzdva/+1hl9LRbVGlxJaff9jkLTkH4bH4PybjKwiEQOjpK+e1Udkozz 6t453M4FGgv0w== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v3 10/36] terraform/oci: Enable preemptible compute instances Date: Thu, 4 Sep 2025 11:14:58 -0400 Message-ID: <20250904151526.1596282-11-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250904151526.1596282-1-cel@kernel.org> References: <20250904151526.1596282-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. Reviewed-by: Luis Chamberlain 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