Repository navigation
Use graphdb.Walk with depth=1 in /containers - #10105
Conversation
|
+1 -9 😻 |
|
~~ This is a breaking change~~ Names column doesn't have the linked names anymore, and I'm sure people are relying on this. I don't know what the right solution is though :( EDIT: Apparently, this behavior was already in 1.4 |
|
whoa why is there no test for that? |
|
@tiborvass I too recall this, but it's currently the same in master |
|
@vieux you are right, I can confirm it's the same in master. In fact it's the same in 1.4.1 :( |
|
On the bright side, nobody noticed, to nobody was using it :D |
|
@vieux is it the case for the API as well? And if we want to remove it because it was undocumented and no one complained it was removed, I would still wait one more release for this, just to be sure. |
|
@tiborvass I was kinda joking, I think we should reintroduce it. at least with |
|
we should write a failing test then do a git bisect FUN FUN FUN |
|
How it was before? I think I can add first-level linked names with Walk + depth==1. Also I think that this all was undocumented, unused and confusing as hell :) |
|
@LK4D4 it is documented Look for That's why the column is |
|
Also, this has this 'feature' has the potential to bring docker to an unrecoverable state, as #9967 shows= |
|
that's also why the names are in the graphdb instead of just the container,json. They can change with links |
|
please make sure the docs get corrected to what is actually happening |
|
Yeah, I know why we using graphdb, but it seems that there was some idea behind this, which totally lost now. |
|
@tiborvass @SvenDowideit @vieux take another look, now this names shows with |
|
@cpuguy83 Yup, thanks that you found it. |
|
LGTM |
|
I would like to make sure we're not breaking the API (sorry) |
|
@tiborvass It is breaking api in good and useful way (not best because someone want see links in |
|
Just adding user feedback, monitoring tools like DataDog will call docker ps every few seconds, so I think it might be worth to break the API if it comes down to it. Antoni Batchelli
On January 20, 2015 at 12:55:56 PM, Alexander Morozov ([email protected]) wrote: @tiborvass It is breaking api in good and useful way (not best because someone want see links in --no-trunc). — |
|
Docs LGTM |
I don't think that it was very useful feature in current implementation, but when you have a lot of links - your daemon became unusable because on first call of /containers global graphdb lock will be acquired and it can take a lot of time: 30m for 15 containers linked to each other. Links names can be seen with `--no-trunc`, but I think it's useless :) Fixes #9967 Signed-off-by: Alexander Morozov <[email protected]>
Signed-off-by: Alexander Morozov <[email protected]>
Signed-off-by: Alexander Morozov <[email protected]>
|
LGTM |
Use graphdb.Walk with depth=1 in /containers
I don't think that it was very useful feature in current implementation,
but when you have a lot of links - your daemon became unusable because
on first call of /containers global graphdb lock will be acquired and it
can take a lot of time: 30m for 15 containers linked to each other.
Fixes #9967
Also note that this was undocumented feature.
ping @aanand @vieux @tbatchelli