تكوين ميلفوس أثناء التنقل
يسمح لك Milvus بتغيير بعض تكويناته أثناء التنقل.
قبل البدء
تحتاج إلى التأكد من أن: :
- لديك برنامج Birdwatcher مثبتاً. لمزيد من التفاصيل، راجع تثبيت Birdwatcher,
- لديك برنامج إلخdctl مثبت لديك. لمزيد من التفاصيل، راجع التفاعل مع إلخd، أو
- إذا كان لديك عملاء آخرين لـ etcd، مثل عميل Python، مثبتين.
- تقوم الأمثلة في هذا الدليل بتغيير قيمة
proxy.minPasswordLength
إلى8
. يمكنك استبدال المفتاح بالمفاتيح القابلة للتطبيق المدرجة في عناصر التكوين القابلة للتطبيق. - تفترض الأمثلة في هذا الدليل أن المسار الجذر لـ Milvus الخاص بك هو
by-dev
. جميع التكوينات مدرجة تحت المسارby-dev/config
. يختلف مسار جذر Milvus باختلاف طريقة تثبيته. بالنسبة للمثيلات المثبتة باستخدام مخططات Helm، يتم تعيين المسار الجذر افتراضيًا إلىby-dev
. إذا كنت لا تعرف المسار الجذر، فارجع إلى الاتصال بـ etcd.
تغيير التكوينات
في ميلفوس، يتم تعيين proxy.minPasswordLength
على 6
افتراضيًا. لتغيير هذه القيمة، يمكنك القيام بما يلي:
$ etcdctl put by-dev/config/proxy/minPasswordLength 8
# or
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,set config-etcd --key by-dev/config/proxy/minPasswordLength --value 8"
ثم يمكنك التحقق من التكوينات على النحو التالي:
$ etcdctl get by-dev/config/proxy/minPasswordLength
استرجاع التكوينات
يسمح لك Milvus أيضاً باستعادة التكوينات الخاصة بك في حال لم تعد القيمة التي تم تغييرها سارية.
$ etcdctl del by-dev/config/proxy/minPasswordLength
# or
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,remove config-etcd --key by-dev/config/proxy/minPasswordLength"
ثم يمكنك التحقق من التكوينات على النحو التالي:
$ etcdctl get by-dev/config/proxy/minPasswordLength
عرض التكوينات
بدلاً من عرض قيمة عنصر تكوين معين، يمكنك أيضاً سرد جميع التكوينات.
$ etcdctl get --prefix by-dev/config
# or
$ birdwatcher -olc "#connect --etcd 127.0.0.1:2379 --rootPath=by-dev,show config-etcd"
لعرض تكوينات عقدة محددة:
Offline > connect --etcd ip:port
Milvus(by-dev) > show session # List all nodes with their server ID
Milvus(by-dev) > visit querycoord 1 # Visit a node by server ID
QueryCoord-1(ip:port) > configuration # List the configuration of the node
عناصر التكوين القابلة للتطبيق
في الوقت الحالي، يمكنك تغيير عناصر التكوين التالية بشكل سريع.
عنصر التكوين | القيمة الافتراضية |
---|---|
pulsar.maxMessageSize | 5242880 |
شائع.مدة الاحتفاظ | 86400 |
شائع.entityExpiration | -1 |
الوقت الشائع.gracefulTime | 5000 |
شائع.gracefulStopTimeTimeout | 30 |
quotaAndLimits.ddl.enabled | FALSE |
تم تمكين quotaAndLimits.indexRate.enabled | FALSE |
تم تمكين quotaAndLimits.flushRate.enabled | FALSE |
تم تمكين quotaAndLimits.compactionRate.enabled | FALSE |
تم تمكين quotaAndLimits.dml.enabled | FALSE |
تم تمكين quotaAndLimits.dql.enabled | FALSE |
quotaAndLimits.limits.collection.maxNum | 64 |
quotaAndLimits.limitWriting.forceDeny.forceDeny | FALSE |
quotaAndLimits.limitWriting.ttProtection.enabled | FALSE |
quotaAndLimits.limitWriting.ttProtection.maxTimeTickTickDelay | 9223372036854775807 |
quotaAndLimits.limitWriting.memProtection.enabled | TRUE |
quotaAndLimits.limitWriting.memProtection.dataNodeMemoryLowWaterLevel | 0.85 |
quotaAndLimits.limitWriting.memProtection.dataNodeMemoryHighWaterLevel | 0.95 |
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryLowWaterLevel | 0.85 |
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryHighWaterLevel | 0.95 |
quotaAndLimits.limitWriting.diskProtection.enabled | TRUE |
quotaAndLimits.limitWriting.diskProtection.diskQuota | +INF |
quotaAndLimits.limitReading.forceDeny.forceDeny | FALSE |
quotaAndLimits.limitReading.queueProtection.enabled | FALSE |
quotaAndLimits.limitReading.queueProtection.nqInQueueThreshold | 9223372036854775807 |
quotaAndLimits.limitReading.queueProtection.queueLatencyThreshold | +INF |
quotaAndLimits.limitReading.resultProtection.enabled | FALSE |
quotaAndLimits.limitReading.resultProtection.maxReadResultRate | +INF |
quotaAndLimits.limitReading.coolOffSpeed | 0.9 |
تمكين الفهرس التلقائي | FALSE |
بناء الفهرس التلقائي | "" |
autoIndex.params.extra | "" |
بحث.بارامز.بارامز.بحث | "" |
proxy.maxNameLength | 255 |
proxy.maxUsernameLength.maxUsernameLength | 32 |
الحد الأدنى لطول كلمة المرور | 6 |
الحد الأقصى لطول كلمة المرور | 256 |
proxy.maxFieldNum | 64 |
proxy.maxShardNum | 256 |
proxy.maxDimension | 32768 |
proxy.maxUserNum | 100 |
proxy.maxRoleNum | 10 |
queryNode.enableDisk | TRUE |
dataCoord.segment.diskSegmentMaxSize | 2048 |
dataCoord.compaction.enableAutoCompaction | صحيح |
ما التالي
- تعرف على المزيد حول تكوينات النظام.
- تعرف على كيفية تكوين Milvus المثبت باستخدام مشغل Milvus ومخططات Helm وDocker.