diff --git a/README.md b/README.md index 49fd01015c5..6ef207088d2 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ additional details on each available environment variable. | `ECS_CGROUP_PATH` | `/sys/fs/cgroup` | The root cgroup path that is expected by the ECS agent. This is the path that accessible from the agent mount. | `/sys/fs/cgroup` | Not applicable | | `ECS_ENABLE_CPU_UNBOUNDED_WINDOWS_WORKAROUND` | `true` | When `true`, ECS will allow CPU unbounded(CPU=`0`) tasks to run along with CPU bounded tasks in Windows. | Not applicable | `false` | | `ECS_TASK_METADATA_RPS_LIMIT` | `100,150` | Comma separated integer values for steady state and burst throttle limits for task metadata endpoint | `40,60` | `40,60` | -| `ECS_SHARED_VOLUME_MATCH_FULL_CONFIG` | `true` | When `true`, ECS Agent will compare name, driver options, and labels to make sure volumes are identical. When `false`, Agent will short circuit shared volume comparison if the names match. This is the defualt Docker behavior. If a volume is shared across instances, this should be set to `false`. | `false` | `false`| +| `ECS_SHARED_VOLUME_MATCH_FULL_CONFIG` | `true` | When `true`, ECS Agent will compare name, driver options, and labels to make sure volumes are identical. When `false`, Agent will short circuit shared volume comparison if the names match. This is the default Docker behavior. If a volume is shared across instances, this should be set to `false`. | `false` | `false`| ### Persistence diff --git a/agent/config/config.go b/agent/config/config.go index 4e5cc8455a2..198e01c6c5e 100644 --- a/agent/config/config.go +++ b/agent/config/config.go @@ -104,10 +104,6 @@ const ( // DefaultTaskMetadataBurstRate is set to handle 60 burst requests at once DefaultTaskMetadataBurstRate = 60 - - // DefaultSharedVolumeMatchFullConfig is set to false, only requiring shared volumes to match - // on names - DefaultSharedVolumeMatchFullConfig = false ) const ( diff --git a/agent/config/config_unix.go b/agent/config/config_unix.go index 645c73211ed..bc43dd41abd 100644 --- a/agent/config/config_unix.go +++ b/agent/config/config_unix.go @@ -68,7 +68,7 @@ func DefaultConfig() Config { CgroupPath: defaultCgroupPath, TaskMetadataSteadyStateRate: DefaultTaskMetadataSteadyStateRate, TaskMetadataBurstRate: DefaultTaskMetadataBurstRate, - SharedVolumeMatchFullConfig: DefaultSharedVolumeMatchFullConfig, + SharedVolumeMatchFullConfig: false, // only requiring shared volumes to match on name, which is default docker behavior } } diff --git a/agent/config/config_windows.go b/agent/config/config_windows.go index d3aa236107c..c0d30bee133 100644 --- a/agent/config/config_windows.go +++ b/agent/config/config_windows.go @@ -91,7 +91,7 @@ func DefaultConfig() Config { PlatformVariables: platformVariables, TaskMetadataSteadyStateRate: DefaultTaskMetadataSteadyStateRate, TaskMetadataBurstRate: DefaultTaskMetadataBurstRate, - SharedVolumeMatchFullConfig: DefaultSharedVolumeMatchFullConfig, + SharedVolumeMatchFullConfig: false, //only requiring shared volumes to match on name, which is default docker behavior } }