Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set JindoCache's defaut readahead prefetcher version to "legacy" #4477

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions api/v1alpha1/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
".AffinityStrategy": {
"type": "object",
"properties": {
"dependOn": {
"description": "Specifies the dependent preceding operation in a workflow. If not set, use the operation referred to by RunAfter.",
"$ref": "#/definitions/.ObjectRef"
},
"policy": {
"description": "Policy one of: \"\", \"Require\", \"Prefer\"",
"type": "string"
Expand Down Expand Up @@ -413,6 +417,19 @@
}
}
},
".ClientMetrics": {
"type": "object",
"properties": {
"enabled": {
"description": "Enabled decides whether to expose client metrics.",
"type": "boolean"
},
"scrapeTarget": {
"description": "ScrapeTarget decides which fuse component will be scraped by Prometheus. It is a list separated by comma where supported items are [MountPod, Sidecar, All (indicates MountPod and Sidecar), None]. Defaults to None when it is not explicitly set.",
"type": "string"
}
}
},
".Condition": {
"description": "Condition explains the transitions on phase",
"type": "object",
Expand Down Expand Up @@ -1872,6 +1889,14 @@
"default": ""
}
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"labels": {
"description": "Labels will be added on JindoFS Master or Worker pods. DEPRECATED: This is a deprecated field. Please use PodMetadata instead. Note: this field is set to be exclusive with PodMetadata.Labels",
"type": "object",
Expand Down Expand Up @@ -1973,6 +1998,14 @@
"description": "One of the three policies: `Always`, `IfNotPresent`, `Never`",
"type": "string"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"imageTag": {
"description": "Image Tag for Jindo Fuse(e.g. 2.3.0-SNAPSHOT)",
"type": "string"
Expand All @@ -1992,6 +2025,11 @@
"default": ""
}
},
"metrics": {
"description": "Define whether fuse metrics will be enabled.",
"default": {},
"$ref": "#/definitions/.ClientMetrics"
},
"nodeSelector": {
"description": "NodeSelector is a selector which must be true for the fuse client to fit on a node, this option only effect when global is enabled",
"type": "object",
Expand Down Expand Up @@ -2100,6 +2138,14 @@
"description": "Name of the configMap used to support HDFS configurations when using HDFS as Jindo's UFS. The configMap must be in the same namespace with the JindoRuntime. The configMap should contain user-specific HDFS conf files in it. For now, only \"hdfs-site.xml\" and \"core-site.xml\" are supported. It must take the filename of the conf file as the key and content of the file as the value.",
"type": "string"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"jindoVersion": {
"description": "The version information that instructs fluid to orchestrate a particular version of Jindo.",
"default": {},
Expand Down Expand Up @@ -2679,6 +2725,33 @@
}
}
},
".ObjectRef": {
"type": "object",
"required": [
"kind",
"name"
],
"properties": {
"apiVersion": {
"description": "API version of the referent operation",
"type": "string"
},
"kind": {
"description": "Kind specifies the type of the referent operation",
"type": "string",
"default": ""
},
"name": {
"description": "Name specifies the name of the referent operation",
"type": "string",
"default": ""
},
"namespace": {
"description": "Namespace specifies the namespace of the referent operation.",
"type": "string"
}
}
},
".OperationRef": {
"type": "object",
"required": [
Expand Down Expand Up @@ -3266,6 +3339,14 @@
"description": "One of the three policies: `Always`, `IfNotPresent`, `Never`",
"type": "string"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"imageTag": {
"description": "Image for thinRuntime fuse",
"type": "string"
Expand Down Expand Up @@ -3357,6 +3438,14 @@
"description": "One of the three policies: `Always`, `IfNotPresent`, `Never`",
"type": "string"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"imageTag": {
"description": "Image for thinRuntime fuse",
"type": "string"
Expand Down Expand Up @@ -3537,6 +3626,14 @@
"default": {},
"$ref": "#/definitions/.ThinFuseSpec"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"nodePublishSecretPolicy": {
"description": "NodePublishSecretPolicy describes the policy to decide which to do with node publish secret when mounting an existing persistent volume.",
"type": "string"
Expand Down Expand Up @@ -3573,6 +3670,14 @@
"default": {},
"$ref": "#/definitions/.ThinFuseSpec"
},
"imagePullSecrets": {
"description": "ImagePullSecrets that will be used to pull images",
"type": "array",
"items": {
"default": {},
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"management": {
"description": "RuntimeManagement defines policies when managing the runtime",
"default": {},
Expand Down
19 changes: 10 additions & 9 deletions pkg/ddc/jindocache/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,15 +757,16 @@ func (e *JindoCacheEngine) transformFuse(runtime *datav1alpha1.JindoRuntime, val
}
// default enable data-cache and disable meta-cache
properties := map[string]string{
"fs.jindocache.request.user": "root",
"fs.jindocache.tmp.data.dir": "/tmp",
"fs.jindocache.client.metrics.enable": "true",
"fs.jindocache.rpc.timeout": "30000", // brpc timeout 30s avoid client hang
"fs.oss.download.queue.size": "16",
"fs.oss.download.thread.concurrency": "32",
"fs.s3.download.queue.size": "16",
"fs.s3.download.thread.concurrency": "32",
"fs.xengine": "jindocache",
"fs.jindocache.request.user": "root",
"fs.jindocache.tmp.data.dir": "/tmp",
"fs.jindocache.client.metrics.enable": "true",
"fs.jindocache.rpc.timeout": "30000", // brpc timeout 30s avoid client hang
"fs.oss.download.queue.size": "16",
"fs.oss.download.thread.concurrency": "32",
"fs.s3.download.queue.size": "16",
"fs.s3.download.thread.concurrency": "32",
"fs.xengine": "jindocache",
"jindofsx.read.readahead.prefetcher.version": "legacy",
}

readOnly := false
Expand Down
Loading