Skip to content

Increase gRPC message size #759

@LahiLuk

Description

@LahiLuk

Hello,

I encountered the following error while running a task with TPI:

│ Error: Plugin error
│ 
│   with iterative_task.data-segmentation,
│   on main.tf line 6, in resource "iterative_task" "data-segmentation":
│    6: resource "iterative_task" "data-segmentation" {
│ 
│ The plugin returned an unexpected error from plugin.(*GRPCProvider).PlanResourceChange: rpc error: code =
│ ResourceExhausted desc = grpc: received message larger than max (9953646 vs. 4194304)

Due to the error, the provisioned EC2 instance stopped producing expected outputs, but still kept running. I could not run terraform destroy and had to terminate the instance and all other resources manually.

When running the same task on a smaller subset of data, the task completes successfully.

If I understand correctly, gRPC uses the default 4MB message size unless configured to allow a larger size. Is there a way for TPI plugin users to configure this setting?

Environment Details:

Terraform v1.5.7
on linux_amd64
+ provider registry.terraform.io/iterative/iterative v0.11.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions