This message was deleted.
# develocity
s
This message was deleted.
n
Can you tell me more about your build cache node setup and replication strategy, Ritesh?
r
Yeah, sure. The remote cache node is running in a docker container (which is self-signed as of now - ssl part). I was able to connect this node with gradle enterprise server. Replication strategy -
built-in
cache node is set as source for this new node, and i have enabled
Preemptive replication
Remote cache network health is showing as healthy and
OK-full functional
I do see copy-ins as 3,691 and data received 520Mib, but
stored
hits
hit-rate
are showing as 0.
Something to do with
stored
part?
first row is built-in node, second row is the node i have set-up (whose replication source is built-in node)
I believe no extra set-up or config needs to be done? just hook the new node with the server and add built-in node as source for replication. The traffic part - which node should be hit based on geo-location should be handled without any config at our end?
n
Yeah, this setup seems correct. Right now, each build needs to be pointed to the nearest build cache node. When you point the build to the external cache node, do you get cache hits?
r
Thanks.
When you point the build to the external cache node, do you get cache hits?
You mean hitting it from the geo-location which is nearest to the external cache node right? No, changes from code - in terms of pointing to the external node. Yeah, when i try to build with after clearing my computer local cache, i do see - there was a hit in remote cache, from build-scan. But, when i come back to the image shared above, i don't see any cache hits or miss - all are showing as 0. I am sitting very near to the external cache node data-center.
n
That is curious. I would file a support ticket about this.
r
Another question on
Latest cache events - some times i see
copy-ins data here and some-times i don't. It only shows the latest ones in a time-frame? I was also, wondering if you could clarify
Preemptive replication
- if check this is disabled, i believe it's on demand basis - what does that means? Demand basis as in, when ever there is request from computer, it will then copy the caches? And if it's enabled - every-time a cache gets stored in built-in cache node, it will also replicate the same cache node in external cache node?
I would file a support ticket about this.
Sure
n
Here you can find more information about the replication strategies: https://docs.gradle.com/enterprise/helm-admin/current/#replication
thank you 1
r
@no Sorry for tagging! I have filed a support ticket. I was wondering if i need to point to server based on time-zone, or gradle-enterprise server should pick it by default.
n
each build should point itself to the nearest build cache node, there is no way that Gradle Enterprise will do this for you. we do this on our team by asking each developer to pick the nearest node by setting a property in our
~/.gradle.properties
file
r
okay, sure.
what if the nearest node is down, will it fall back to the other nearest node?
or say any external replication node goes down, will it fall back to other nodes, considering each node are pointed to explicitly.
n
the build itself will not fallback to another remote cache node. it has no knowledge of other nodes.
it will fallback to the local build cache
r
thanks a lot.
We were able to configure, geo-location nodes.
For monitoring perf of nodes based on location - what you actually look at?
Build cache overhead
time? My build gets completed in
25 mints
but build cache overhead time, it shows as
2hrs
n
that build cache overhead seems high
check a build scan for the download speed of the artifacts
r
@no Thanks, still exploring but download speed seems to be 473Mib ~ which is fair. I hope you meant to look at this one.
n
473.2 is the size of the files
r
Ahh yes, thanks. Now, when i expand the Hit, i see the download speed for each artifacts.
@no I was wondering what's the usual troubleshooting steps in scenarios like these -
download speed of the artifacts
aren't great ! they are in kb's and 1-1.2 Mb's. My machine speed is good and same holds true for the virtual host machine where remote cache node is hosted.
n
what is the download speed when you try to connect to the build cache node? try downloading an artifact using curl. where in the world is the cache node? where in the world is your computer?
👀 1