Skip to content

Commit

Permalink
[House Keeping] deprecate MaxDatasetSizeBytes propeller config in fav…
Browse files Browse the repository at this point in the history
…or of GetLimitMegabytes storage config (#4852)

* deprecate MaxDatasetSizeBytes propeller config in favor of GetLimitMegabytes storage config

Signed-off-by: Paul Dittamo <[email protected]>

* update config docs

Signed-off-by: Paul Dittamo <[email protected]>

* update deprecation message

Signed-off-by: Paul Dittamo <[email protected]>

* oof

Signed-off-by: Paul Dittamo <[email protected]>

---------

Signed-off-by: Paul Dittamo <[email protected]>
  • Loading branch information
pvditt authored Mar 21, 2024
1 parent 1caa86d commit 2db8eed
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/deployment/configuration/generated/flyteadmin_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3522,13 +3522,13 @@ Enable events publishing to K8s events API.
max-output-size-bytes (int64)
------------------------------------------------------------------------------------------------------------------------

Maximum size of outputs per task
Deprecated! Use storage.limits.maxDownloadMBs instead

**Default Value**:

.. code-block:: yaml
"10485760"
"-1"
enable-grpc-latency-metrics (bool)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4166,13 +4166,13 @@ Enable events publishing to K8s events API.
max-output-size-bytes (int64)
------------------------------------------------------------------------------------------------------------------------

Maximum size of outputs per task
Deprecated! Use storage.limits.maxDownloadMBs instead

**Default Value**:

.. code-block:: yaml
"10485760"
"-1"
enable-grpc-latency-metrics (bool)
Expand Down
4 changes: 2 additions & 2 deletions docs/deployment/configuration/generated/scheduler_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3522,13 +3522,13 @@ Enable events publishing to K8s events API.
max-output-size-bytes (int64)
------------------------------------------------------------------------------------------------------------------------

Maximum size of outputs per task
Deprecated! Use storage.limits.maxDownloadMBs instead

**Default Value**:

.. code-block:: yaml
"10485760"
"-1"
enable-grpc-latency-metrics (bool)
Expand Down
4 changes: 2 additions & 2 deletions flytepropeller/pkg/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var (
GCInterval: config.Duration{
Duration: 30 * time.Minute,
},
MaxDatasetSizeBytes: 10 * 1024 * 1024,
MaxDatasetSizeBytes: -1,
Queue: CompositeQueueConfig{
Type: CompositeQueueBatch,
BatchingInterval: config.Duration{
Expand Down Expand Up @@ -142,7 +142,7 @@ type Config struct {
GCInterval config.Duration `json:"gc-interval" pflag:"Run periodic GC every 30 minutes"`
LeaderElection LeaderElectionConfig `json:"leader-election,omitempty" pflag:",Config for leader election."`
PublishK8sEvents bool `json:"publish-k8s-events" pflag:",Enable events publishing to K8s events API."`
MaxDatasetSizeBytes int64 `json:"max-output-size-bytes" pflag:",Maximum size of outputs per task"`
MaxDatasetSizeBytes int64 `json:"max-output-size-bytes" pflag:",Deprecated! Use storage.limits.maxDownloadMBs instead"`
EnableGrpcLatencyMetrics bool `json:"enable-grpc-latency-metrics" pflag:",Enable grpc latency metrics. Note Histograms metrics can be expensive on Prometheus servers."`
KubeConfig KubeClientConfig `json:"kube-client-config" pflag:",Configuration to control the Kubernetes client"`
NodeConfig NodeConfig `json:"node-config,omitempty" pflag:",config for a workflow node"`
Expand Down
2 changes: 1 addition & 1 deletion flytepropeller/pkg/controller/config/config_flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flytepropeller/pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func New(ctx context.Context, cfg *config.Config, kubeClientset kubernetes.Inter
}

nodeExecutor, err := nodes.NewExecutor(ctx, cfg.NodeConfig, store, controller.enqueueWorkflowForNodeUpdates, eventSink,
launchPlanActor, launchPlanActor, cfg.MaxDatasetSizeBytes, storage.DataReference(cfg.DefaultRawOutputPrefix), kubeClient,
launchPlanActor, launchPlanActor, sCfg.Limits.GetLimitMegabytes*1024*1024, storage.DataReference(cfg.DefaultRawOutputPrefix), kubeClient,
catalogClient, recoveryClient, &cfg.EventConfig, cfg.ClusterID, signalClient, nodeHandlerFactory, scope)
if err != nil {
return nil, errors.Wrapf(err, "Failed to create Controller.")
Expand Down

0 comments on commit 2db8eed

Please sign in to comment.