How do you manage shared information and private information of an entity? [on hold]
Let's say we are going to design a system to manage the configuration of a lot of virtual machines (VM). All VMs have the same configuration space. And for a specific configuration item, different VM can have a different value. All VM2 can be divided into several groups according to their usage. For one group, all the VMs in this group share most configuration value, but they may also have some configuration item with a different value. How to design the system with the following considerations:
- Should be easy to add a VM to inherit the shared configuration value of a group;
- Should be easy to manage a VM's private configuration value;
- When changed the shared configuration value of a group, the VMs inherited this configuration value will also update their value;
Any ideas on how to achieve this?