Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Allow traits to identify its side effect which allows OAM runtime to optimize #30

Open
ryanzhang-oss opened this issue May 22, 2020 · 2 comments

Comments

@ryanzhang-oss
Copy link
Collaborator

The trait system is an important part of OAM. The OAM community has given us feedbacks and one common concern is that applying a Trait may cause the containers in the workload to restart. This is not a desired behavior in many production environments.

We propose to add a trait's side effect to our traitDefinition. This allows our OAM platform to optimize our trait behavior so that we can minimize the negative impact on the workload.

We will follow up with a design proposal

@wonderflow
Copy link
Member

This issue should be related with patch trait , any trait which will affect pod should trigger version(upgrade)

@wonderflow
Copy link
Member

I think we need strict mechanism to limit all patch trait can only affect workload by oam-runtime patch trait mechanism.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants