mirror of
https://github.com/alibaba/higress.git
synced 2026-06-08 20:27:31 +08:00
fix: rebuild mcp filter on high memory usage (#3922)
Signed-off-by: johnlanni <zty98751@alibaba-inc.com>
This commit is contained in:
@@ -20,8 +20,8 @@ import (
|
|||||||
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm"
|
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm"
|
||||||
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm/types"
|
"github.com/higress-group/proxy-wasm-go-sdk/proxywasm/types"
|
||||||
|
|
||||||
"github.com/higress-group/wasm-go/pkg/log"
|
|
||||||
"github.com/alibaba/higress/plugins/wasm-go/pkg/mcp/utils"
|
"github.com/alibaba/higress/plugins/wasm-go/pkg/mcp/utils"
|
||||||
|
"github.com/higress-group/wasm-go/pkg/log"
|
||||||
"github.com/higress-group/wasm-go/pkg/wrapper"
|
"github.com/higress-group/wasm-go/pkg/wrapper"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -209,6 +209,7 @@ func Initialize() {
|
|||||||
wrapper.ProcessResponseHeaders(onHttpResponseHeaders),
|
wrapper.ProcessResponseHeaders(onHttpResponseHeaders),
|
||||||
wrapper.ProcessRequestBody(onHttpRequestBody),
|
wrapper.ProcessRequestBody(onHttpRequestBody),
|
||||||
wrapper.ProcessResponseBody(onHttpResponseBody),
|
wrapper.ProcessResponseBody(onHttpResponseBody),
|
||||||
|
wrapper.WithRebuildMaxMemBytes[mcpFilterConfig](200*1024*1024),
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user