milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
29.96k stars 2.87k forks source link

[Bug]: Can't update the port #36661

Open xiaobingxia-at opened 1 week ago

xiaobingxia-at commented 1 week ago

Is there an existing issue for this?

Environment

- Milvus version: 2.4.11
- Deployment mode(standalone or cluster): cluster
- MQ type(rocksmq, pulsar or kafka): kafka
- SDK version(e.g. pymilvus v2.0.0rc2): pymilvus
- OS(Ubuntu or CentOS): Ubuntu
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

Hello, somehow my AWS EKS cluster doesn't allow the communication through ports >20000, so I need to change the the port number of each component. I have tried following ways:

  1. Change the component config
apiVersion: milvus.io/v1beta1
kind: Milvus
metadata:
    name: milvus-test-staging-s3
    namespace: starrocks-complex-query
    labels:
        app: milvus
spec:
    mode: cluster
    components:
        rootCoord:
            replicas: 1
            port: 13100
            resources:
                limits:
                    cpu: 2
                    memory: 8Gi
  1. Change the config:
    apiVersion: milvus.io/v1beta1
    kind: Milvus
    metadata:
    name: milvus-test-staging-s3
    namespace: starrocks-complex-query
    labels:
        app: milvus
    spec:
    mode: cluster
    config:
        rootCoord:
            dmlChannelNum: 4
            maxDatabaseNum: 32
            maxGeneralCapacity: 100000
            port: 13100

Unfortunately, nothing works. the root coord still listens from 53100. Does anyone know how to change the port of each component through k8s operator?

Thanks!

Expected Behavior

After updating the port number at the k8s yaml file, root-coord should listen to the port I specified.

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

yanliang567 commented 1 week ago

/assign @LoveEachDay /unassign

LoveEachDay commented 1 week ago

/assign @haorenfsa

haorenfsa commented 1 week ago

Hi @xiaobingxia-at , thank you for the feedback. What you pasted seems to be a correct way to set the port. I'll try figuring out what's happening.