File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 45
45
#include < library/cpp/lwtrace/mon/mon_lwtrace.h>
46
46
#include < library/cpp/monlib/service/pages/templates.h>
47
47
#include < library/cpp/resource/resource.h>
48
-
48
+ # include < util/generic/guid.h >
49
49
50
50
namespace NKikimr ::NKqp {
51
51
@@ -236,9 +236,14 @@ class TKqpProxyService : public TActorBootstrapped<TKqpProxyService> {
236
236
ResourcePoolsCache.UpdateFeatureFlags (FeatureFlags, ActorContext ());
237
237
238
238
if (auto & cfg = TableServiceConfig.GetSpillingServiceConfig ().GetLocalFileConfig (); cfg.GetEnable ()) {
239
+ TString spillingRoot = cfg.GetRoot ();
240
+ if (spillingRoot.empty ()) {
241
+ spillingRoot = TStringBuilder () << " /tmp/ydb_spilling_" << CreateGuidAsString () << " /" ;
242
+ }
243
+
239
244
SpillingService = TlsActivationContext->ExecutorThread .RegisterActor (NYql::NDq::CreateDqLocalFileSpillingService (
240
245
NYql::NDq::TFileSpillingServiceConfig{
241
- .Root = cfg. GetRoot () ,
246
+ .Root = spillingRoot ,
242
247
.MaxTotalSize = cfg.GetMaxTotalSize (),
243
248
.MaxFileSize = cfg.GetMaxFileSize (),
244
249
.MaxFilePartSize = cfg.GetMaxFilePartSize (),
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ message TTableServiceConfig {
56
56
message TSpillingServiceConfig {
57
57
message TLocalFileConfig {
58
58
optional bool Enable = 1 [default = true ];
59
- optional string Root = 2 [default = "/tmp/kikimr_spilling/ " ];
59
+ optional string Root = 2 [default = "" ];
60
60
optional uint64 MaxTotalSize = 3 [default = 21474836480 ]; // 20 GiB
61
61
optional uint64 MaxFileSize = 4 [default = 5368709120 ]; // 5 GiB
62
62
optional uint64 MaxFilePartSize = 5 [default = 104857600 ]; // 100 MB
You can’t perform that action at this time.
0 commit comments