hi all, I need to dynamically enable/disable the `...
# troubleshooting
r
hi all, I need to dynamically enable/disable the
peerSegmentDownloadScheme
on a realtime table. If I do this manually by either adding this line or removing it on the table config, it works, but doing it via an environment variable does not (passing an empty env var vs passing this string to be replaced:
, "peerSegmentDownloadScheme": "http"
) . My question is, is there any other way to disable the peer segment download scheme other than removing the setting entirely? I tried this
"peerSegmentDownloadScheme": ""
and it failed with this message:
Copy code
{
  "code": 400,
  "error": "Invalid value '' for peerSegmentDownloadScheme. Must be one of http or https"
}
m
I think you're right that you'll need to remove that property, you can't specify something other than
http
or
https
otherwise it's gonna throw that errro
error*
m
May I ask why you are using the peer download feature? It was primarily built to solve the issue where deepstore had occasional unavailability. Is there the case for you as well?
r
we're trying to avoid bottlenecks on the controller and following the documentation here for setting up a GKE environment, but we also want this to work locally
so locally we don't want the setting, but we do want it in GKE
m
Yeah, peer download and eliminating pushing payload to controller should be independent, but somehow tied together. We should decouple these two in the implementation. cc @Neha Pawar @Yupeng Fu
r
FYI: I ended up implementing as a JSON comment. Like this for local:
Copy code
"__peerSegmentDownloadScheme__": "http"
and this is for GKE:
Copy code
"peerSegmentDownloadScheme": "http"
The local is simply ignoring the setting and it all works