You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
When you submit [email protected] and start template@{1..10}.service fleet writes these unit files into the file system:
ls -la /run/fleet/units/
total 40
drwxr-xr-x 2 root root 240 Mar 16 16:51 .
drwxr-xr-x 3 root root 60 Mar 16 11:47 ..
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
-rw-r--r-- 1 root root 97 Mar 16 16:51 [email protected]
Also it writes down unnecessary duplicated data inside the etcd registry.
With the new --replace feature you have to update each "templated" unit file instead of only one template.
Also when you start units using local template, which is not stored into the registry (i.e. fleetctl start template@{1..10}.service), fleet just creates copies of this template. But for some reason doesn't store the origin template into the registry. I suppose it should.
So the idea is to create a reference to the origin template inside the registry instead of copying template's data. This will allow you to update only one template using the --replace feature.
The text was updated successfully, but these errors were encountered:
@kayrus how would you replace a template? AIUI, fleet commands always work on actual instances. If you do, say fleetctl start --replace [email protected][email protected], it should replace these two instances with ones created from the current (possible changed) template; but not the others. I don't see how you would express "update all instances of this template"...
@kayrus on your argument "With the new --replace feature you have to update each "templated" unit file instead of only one template."
I don't see any problem on this ? if you update a template then "submit --replace" to updated into the registry, that's it. We don't start units from a template on behalf of the user as I guess we don't want to automatically replace instantiated units on behalf of the user, and it's pretty easy just after submit --replace, do start --replace template@{1..100}
@tixxdzstart --replace template@{1..100} will create at least 100 write events into etcd. if you rewrite only one template it will create only N etcd read events, where N is amount of machines in cluster.
When you submit
[email protected]
and starttemplate@{1..10}.service
fleet writes these unit files into the file system:Also it writes down unnecessary duplicated data inside the etcd registry.
With the new
--replace
feature you have to update each "templated" unit file instead of only one template.Also when you start units using local template, which is not stored into the registry (i.e.
fleetctl start template@{1..10}.service
), fleet just creates copies of this template. But for some reason doesn't store the origin template into the registry. I suppose it should.So the idea is to create a reference to the origin template inside the registry instead of copying template's data. This will allow you to update only one template using the
--replace
feature.The text was updated successfully, but these errors were encountered: