forked from apache/cloudstack
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfig.java
More file actions
1934 lines (1865 loc) · 81.1 KB
/
Config.java
File metadata and controls
1934 lines (1865 loc) · 81.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.configuration;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.StringTokenizer;
import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService;
import org.apache.cloudstack.engine.subsystem.api.storage.StoragePoolAllocator;
import org.apache.cloudstack.framework.config.ConfigKey;
import com.cloud.agent.AgentManager;
import com.cloud.consoleproxy.ConsoleProxyManager;
import com.cloud.ha.HighAvailabilityManager;
import com.cloud.hypervisor.Hypervisor.HypervisorType;
import com.cloud.network.router.VpcVirtualNetworkApplianceManager;
import com.cloud.network.vpc.VpcManager;
import com.cloud.server.ManagementServer;
import com.cloud.storage.StorageManager;
import com.cloud.storage.secondary.SecondaryStorageVmManager;
import com.cloud.storage.snapshot.SnapshotManager;
import com.cloud.template.TemplateManager;
import com.cloud.vm.UserVmManager;
import com.cloud.vm.snapshot.VMSnapshotManager;
/**
* @deprecated use the more dynamic ConfigKey
*/
@Deprecated
public enum Config {
// Alert
AlertEmailAddresses(
"Alert",
ManagementServer.class,
String.class,
"alert.email.addresses",
null,
"Comma separated list of email addresses which are going to receive alert emails.",
null),
AlertEmailSender("Alert", ManagementServer.class, String.class, "alert.email.sender", null, "Sender of alert email (will be in the From header of the email).", null),
AlertSMTPHost("Alert", ManagementServer.class, String.class, "alert.smtp.host", null, "SMTP hostname used for sending out email alerts.", null),
AlertSMTPPassword(
"Secure",
ManagementServer.class,
String.class,
"alert.smtp.password",
null,
"Password for SMTP authentication (applies only if alert.smtp.useAuth is true).",
null),
AlertSMTPPort("Alert", ManagementServer.class, Integer.class, "alert.smtp.port", "465", "Port the SMTP server is listening on.", null),
AlertSMTPConnectionTimeout("Alert", ManagementServer.class, Integer.class, "alert.smtp.connectiontimeout", "30000",
"Socket connection timeout value in milliseconds. -1 for infinite timeout.", null),
AlertSMTPTimeout(
"Alert",
ManagementServer.class,
Integer.class,
"alert.smtp.timeout",
"30000",
"Socket I/O timeout value in milliseconds. -1 for infinite timeout.",
null),
AlertSMTPUseAuth("Alert", ManagementServer.class, String.class, "alert.smtp.useAuth", null, "If true, use SMTP authentication when sending emails.", null),
AlertSMTPUsername(
"Alert",
ManagementServer.class,
String.class,
"alert.smtp.username",
null,
"Username for SMTP authentication (applies only if alert.smtp.useAuth is true).",
null),
CapacityCheckPeriod("Alert", ManagementServer.class, Integer.class, "capacity.check.period", "300000", "The interval in milliseconds between capacity checks", null),
PublicIpCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"zone.virtualnetwork.publicip.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of public IP address space utilization above which alerts will be sent.",
null),
PrivateIpCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"pod.privateip.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of private IP address space utilization above which alerts will be sent.",
null),
SecondaryStorageCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"zone.secstorage.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of secondary storage utilization above which alerts will be sent about low storage available.",
null),
VlanCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"zone.vlan.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of Zone Vlan utilization above which alerts will be sent about low number of Zone Vlans.",
null),
DirectNetworkPublicIpCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"zone.directnetwork.publicip.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of Direct Network Public Ip Utilization above which alerts will be sent about low number of direct network public ips.",
null),
LocalStorageCapacityThreshold(
"Alert",
ManagementServer.class,
Float.class,
"cluster.localStorage.capacity.notificationthreshold",
"0.75",
"Percentage (as a value between 0 and 1) of local storage utilization above which alerts will be sent about low local storage available.",
null),
// Storage
StorageStatsInterval(
"Storage",
ManagementServer.class,
String.class,
"storage.stats.interval",
"60000",
"The interval (in milliseconds) when storage stats (per host) are retrieved from agents.",
null),
StorageCacheReplacementLRUTimeInterval(
"Storage",
ManagementServer.class,
Integer.class,
"storage.cache.replacement.lru.interval",
"30",
"time interval for unused data on cache storage (in days).",
null),
StorageCacheReplacementEnabled(
"Storage",
ManagementServer.class,
Boolean.class,
"storage.cache.replacement.enabled",
"true",
"enable or disable cache storage replacement algorithm.",
null),
StorageCacheReplacementInterval(
"Storage",
ManagementServer.class,
Integer.class,
"storage.cache.replacement.interval",
"86400",
"time interval between cache replacement threads (in seconds).",
null),
MaxUploadVolumeSize("Storage", ManagementServer.class, Integer.class, "storage.max.volume.upload.size", "500", "The maximum size for a uploaded volume(in GB).", null),
TotalRetries(
"Storage",
AgentManager.class,
Integer.class,
"total.retries",
"4",
"The number of times each command sent to a host should be retried in case of failure.",
null),
StoragePoolMaxWaitSeconds(
"Storage",
ManagementServer.class,
Integer.class,
"storage.pool.max.waitseconds",
"3600",
"Timeout (in seconds) to synchronize storage pool operations.",
null),
CreateVolumeFromSnapshotWait(
"Storage",
StorageManager.class,
Integer.class,
"create.volume.from.snapshot.wait",
"10800",
"In second, timeout for creating volume from snapshot",
null),
CopyVolumeWait("Storage", StorageManager.class, Integer.class, "copy.volume.wait", "10800", "In second, timeout for copy volume command", null),
CreatePrivateTemplateFromVolumeWait(
"Storage",
UserVmManager.class,
Integer.class,
"create.private.template.from.volume.wait",
"10800",
"In second, timeout for CreatePrivateTemplateFromVolumeCommand",
null),
CreatePrivateTemplateFromSnapshotWait(
"Storage",
UserVmManager.class,
Integer.class,
"create.private.template.from.snapshot.wait",
"10800",
"In second, timeout for CreatePrivateTemplateFromSnapshotCommand",
null),
BackupSnapshotWait("Storage", StorageManager.class, Integer.class, "backup.snapshot.wait", "21600", "In second, timeout for BackupSnapshotCommand", null),
HAStorageMigration(
"Storage",
ManagementServer.class,
Boolean.class,
"enable.ha.storage.migration",
"true",
"Enable/disable storage migration across primary storage during HA",
null),
// Network
NetworkLBHaproxyStatsVisbility(
"Network",
ManagementServer.class,
String.class,
"network.loadbalancer.haproxy.stats.visibility",
"global",
"Load Balancer(haproxy) stats visibility, the value can be one of the following six parameters : global,guest-network,link-local,disabled,all,default",
null),
NetworkLBHaproxyStatsUri(
"Network",
ManagementServer.class,
String.class,
"network.loadbalancer.haproxy.stats.uri",
"/admin?stats",
"Load Balancer(haproxy) uri.",
null),
NetworkLBHaproxyStatsAuth(
"Secure",
ManagementServer.class,
String.class,
"network.loadbalancer.haproxy.stats.auth",
"admin1:AdMiN123",
"Load Balancer(haproxy) authentication string in the format username:password",
null),
NetworkLBHaproxyStatsPort(
"Network",
ManagementServer.class,
String.class,
"network.loadbalancer.haproxy.stats.port",
"8081",
"Load Balancer(haproxy) stats port number.",
null),
NetworkLBHaproxyMaxConn(
"Network",
ManagementServer.class,
Integer.class,
"network.loadbalancer.haproxy.max.conn",
"4096",
"Load Balancer(haproxy) maximum number of concurrent connections(global max)",
null),
NetworkRouterRpFilter(
"Network",
ManagementServer.class,
Boolean.class,
"network.disable.rpfilter",
"true",
"disable rp_filter on Domain Router VM public interfaces.",
null),
GuestVlanBits(
"Network",
ManagementServer.class,
Integer.class,
"guest.vlan.bits",
"12",
"The number of bits to reserve for the VLAN identifier in the guest subnet.",
null),
//MulticastThrottlingRate("Network", ManagementServer.class, Integer.class, "multicast.throttling.rate", "10", "Default multicast rate in megabits per second allowed.", null),
DirectNetworkNoDefaultRoute(
"Network",
ManagementServer.class,
Boolean.class,
"direct.network.no.default.route",
"false",
"Direct Network Dhcp Server should not send a default route",
"true/false"),
OvsTunnelNetworkDefaultLabel(
"Network",
ManagementServer.class,
String.class,
"sdn.ovs.controller.default.label",
"cloud-public",
"Default network label to be used when fetching interface for GRE endpoints",
null),
VmNetworkThrottlingRate(
"Network",
ManagementServer.class,
Integer.class,
"vm.network.throttling.rate",
"200",
"Default data transfer rate in megabits per second allowed in User vm's default network.",
null),
SecurityGroupWorkCleanupInterval(
"Network",
ManagementServer.class,
Integer.class,
"network.securitygroups.work.cleanup.interval",
"120",
"Time interval (seconds) in which finished work is cleaned up from the work table",
null),
SecurityGroupWorkerThreads(
"Network",
ManagementServer.class,
Integer.class,
"network.securitygroups.workers.pool.size",
"50",
"Number of worker threads processing the security group update work queue",
null),
SecurityGroupWorkGlobalLockTimeout(
"Network",
ManagementServer.class,
Integer.class,
"network.securitygroups.work.lock.timeout",
"300",
"Lock wait timeout (seconds) while updating the security group work queue",
null),
SecurityGroupWorkPerAgentMaxQueueSize(
"Network",
ManagementServer.class,
Integer.class,
"network.securitygroups.work.per.agent.queue.size",
"100",
"The number of outstanding security group work items that can be queued to a host. If exceeded, work items will get dropped to conserve memory. Security Group Sync will take care of ensuring that the host gets updated eventually",
null),
SecurityGroupDefaultAdding(
"Network",
ManagementServer.class,
Boolean.class,
"network.securitygroups.defaultadding",
"true",
"If true, the user VM would be added to the default security group by default",
null),
GuestOSNeedGatewayOnNonDefaultNetwork(
"Network",
NetworkOrchestrationService.class,
String.class,
"network.dhcp.nondefaultnetwork.setgateway.guestos",
"Windows",
"The guest OS's name start with this fields would result in DHCP server response gateway information even when the network it's on is not default network. Names are separated by comma.",
null),
//VPN
RemoteAccessVpnPskLength(
"Network",
AgentManager.class,
Integer.class,
"remote.access.vpn.psk.length",
"24",
"The length of the ipsec preshared key (minimum 8, maximum 256)",
null),
RemoteAccessVpnUserLimit(
"Network",
AgentManager.class,
String.class,
"remote.access.vpn.user.limit",
"8",
"The maximum number of VPN users that can be created per account",
null),
Site2SiteVpnConnectionPerVpnGatewayLimit(
"Network",
ManagementServer.class,
Integer.class,
"site2site.vpn.vpngateway.connection.limit",
"4",
"The maximum number of VPN connection per VPN gateway",
null),
Site2SiteVpnSubnetsPerCustomerGatewayLimit(
"Network",
ManagementServer.class,
Integer.class,
"site2site.vpn.customergateway.subnets.limit",
"10",
"The maximum number of subnets per customer gateway",
null),
MaxNumberOfSecondaryIPsPerNIC(
"Network", ManagementServer.class, Integer.class,
"vm.network.nic.max.secondary.ipaddresses", "256",
"Specify the number of secondary ip addresses per nic per vm. Default value 10 is used, if not specified.", null),
EnableServiceMonitoring(
"Network", ManagementServer.class, Boolean.class,
"network.router.enableserviceMonitoring", "false",
"service monitoring in router enable/disable option, default false", null),
// Console Proxy
ConsoleProxyCapacityStandby(
"Console Proxy",
AgentManager.class,
String.class,
"consoleproxy.capacity.standby",
"10",
"The minimal number of console proxy viewer sessions that system is able to serve immediately(standby capacity)",
null),
ConsoleProxyCapacityScanInterval(
"Console Proxy",
AgentManager.class,
String.class,
"consoleproxy.capacityscan.interval",
"30000",
"The time interval(in millisecond) to scan whether or not system needs more console proxy to ensure minimal standby capacity",
null),
ConsoleProxyCmdPort(
"Console Proxy",
AgentManager.class,
Integer.class,
"consoleproxy.cmd.port",
"8001",
"Console proxy command port that is used to communicate with management server",
null),
ConsoleProxyRestart("Console Proxy", AgentManager.class, Boolean.class, "consoleproxy.restart", "true", "Console proxy restart flag, defaulted to true", null),
ConsoleProxyUrlDomain("Console Proxy", AgentManager.class, String.class, "consoleproxy.url.domain", "", "Console proxy url domain", "domainName", "privateip"),
ConsoleProxySessionMax(
"Console Proxy",
AgentManager.class,
Integer.class,
"consoleproxy.session.max",
String.valueOf(ConsoleProxyManager.DEFAULT_PROXY_CAPACITY),
"The max number of viewer sessions console proxy is configured to serve for",
null),
ConsoleProxySessionTimeout(
"Console Proxy",
AgentManager.class,
Integer.class,
"consoleproxy.session.timeout",
"300000",
"Timeout(in milliseconds) that console proxy tries to maintain a viewer session before it times out the session for no activity",
null),
ConsoleProxyDisableRpFilter(
"Console Proxy",
AgentManager.class,
Boolean.class,
"consoleproxy.disable.rpfilter",
"true",
"disable rp_filter on console proxy VM public interface",
null),
ConsoleProxyLaunchMax(
"Console Proxy",
AgentManager.class,
Integer.class,
"consoleproxy.launch.max",
"10",
"maximum number of console proxy instances per zone can be launched",
null),
ConsoleProxyManagementState(
"Console Proxy",
AgentManager.class,
String.class,
"consoleproxy.management.state",
com.cloud.consoleproxy.ConsoleProxyManagementState.Auto.toString(),
"console proxy service management state",
null),
ConsoleProxyManagementLastState(
"Console Proxy",
AgentManager.class,
String.class,
"consoleproxy.management.state.last",
com.cloud.consoleproxy.ConsoleProxyManagementState.Auto.toString(),
"last console proxy service management state",
null),
// Snapshots
SnapshotPollInterval(
"Snapshots",
SnapshotManager.class,
Integer.class,
"snapshot.poll.interval",
"300",
"The time interval in seconds when the management server polls for snapshots to be scheduled.",
null),
SnapshotDeltaMax("Snapshots", SnapshotManager.class, Integer.class, "snapshot.delta.max", "16", "max delta snapshots between two full snapshots.", null),
KVMSnapshotEnabled("Hidden", SnapshotManager.class, Boolean.class, "kvm.snapshot.enabled", "false", "whether snapshot is enabled for KVM hosts", null),
// Advanced
EventPurgeInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"event.purge.interval",
"86400",
"The interval (in seconds) to wait before running the event purge thread",
null),
AccountCleanupInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"account.cleanup.interval",
"86400",
"The interval (in seconds) between cleanup for removed accounts",
null),
InstanceName("Advanced", AgentManager.class, String.class, "instance.name", "VM", "Name of the deployment instance.", "instanceName"),
ExpungeDelay(
"Advanced",
UserVmManager.class,
Integer.class,
"expunge.delay",
"86400",
"Determines how long (in seconds) to wait before actually expunging destroyed vm. The default value = the default value of expunge.interval",
null),
ExpungeInterval(
"Advanced",
UserVmManager.class,
Integer.class,
"expunge.interval",
"86400",
"The interval (in seconds) to wait before running the expunge thread.",
null),
ExpungeWorkers("Advanced", UserVmManager.class, Integer.class, "expunge.workers", "1", "Number of workers performing expunge ", null),
ExtractURLCleanUpInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"extract.url.cleanup.interval",
"7200",
"The interval (in seconds) to wait before cleaning up the extract URL's ",
null),
DisableExtraction(
"Advanced",
ManagementServer.class,
Boolean.class,
"disable.extraction",
"false",
"Flag for disabling extraction of template, isos and volumes",
null),
ExtractURLExpirationInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"extract.url.expiration.interval",
"14400",
"The life of an extract URL after which it is deleted ",
null),
HostStatsInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"host.stats.interval",
"60000",
"The interval (in milliseconds) when host stats are retrieved from agents.",
null),
HostRetry("Advanced", AgentManager.class, Integer.class, "host.retry", "2", "Number of times to retry hosts for creating a volume", null),
RouterCpuMHz(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"router.cpu.mhz",
String.valueOf(VpcVirtualNetworkApplianceManager.DEFAULT_ROUTER_CPU_MHZ),
"Default CPU speed (MHz) for router VM.",
null),
RouterStatsInterval(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"router.stats.interval",
"300",
"Interval (in seconds) to report router statistics.",
null),
ExternalNetworkStatsInterval(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"external.network.stats.interval",
"300",
"Interval (in seconds) to report external network statistics.",
null),
RouterCheckInterval(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"router.check.interval",
"30",
"Interval (in seconds) to report redundant router status.",
null),
RouterCheckPoolSize(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"router.check.poolsize",
"10",
"Numbers of threads using to check redundant router status.",
null),
RouterExtraPublicNics(
"Advanced",
NetworkOrchestrationService.class,
Integer.class,
"router.extra.public.nics",
"2",
"specify extra public nics used for virtual router(up to 5)",
"0-5"),
ScaleRetry("Advanced", ManagementServer.class, Integer.class, "scale.retry", "2", "Number of times to retry scaling up the vm", null),
UpdateWait("Advanced", AgentManager.class, Integer.class, "update.wait", "600", "Time to wait (in seconds) before alerting on a updating agent", null),
XapiWait("Advanced", AgentManager.class, Integer.class, "xapiwait", "60", "Time (in seconds) to wait for XAPI to return", null),
MigrateWait("Advanced", AgentManager.class, Integer.class, "migratewait", "3600", "Time (in seconds) to wait for VM migrate finish", null),
MountParent(
"Advanced",
ManagementServer.class,
String.class,
"mount.parent",
"/var/cloudstack/mnt",
"The mount point on the Management Server for Secondary Storage.",
null),
SystemVMAutoReserveCapacity(
"Advanced",
ManagementServer.class,
Boolean.class,
"system.vm.auto.reserve.capacity",
"true",
"Indicates whether or not to automatically reserver system VM standby capacity.",
null),
SystemVMDefaultHypervisor("Advanced",
ManagementServer.class,
String.class,
"system.vm.default.hypervisor",
null,
"Hypervisor type used to create system vm, valid values are: XenServer, KVM, VMware, Hyperv, VirtualBox, Parralels, BareMetal, Ovm, LXC, Any",
null),
SystemVMRandomPassword(
"Advanced",
ManagementServer.class,
Boolean.class,
"system.vm.random.password",
"false",
"Randomize system vm password the first time management server starts",
null),
LinkLocalIpNums("Advanced", ManagementServer.class, Integer.class, "linkLocalIp.nums", "10", "The number of link local ip that needed by domR(in power of 2)", null),
HypervisorList(
"Advanced",
ManagementServer.class,
String.class,
"hypervisor.list",
HypervisorType.Hyperv + "," + HypervisorType.KVM + "," + HypervisorType.XenServer + "," + HypervisorType.VMware + "," + HypervisorType.BareMetal + "," +
HypervisorType.Ovm + "," + HypervisorType.LXC + "," + HypervisorType.Ovm3,
"The list of hypervisors that this deployment will use.",
"hypervisorList"),
ManagementNetwork("Advanced", ManagementServer.class, String.class, "management.network.cidr", null, "The cidr of management server network", null),
EventPurgeDelay(
"Advanced",
ManagementServer.class,
Integer.class,
"event.purge.delay",
"15",
"Events older than specified number days will be purged. Set this value to 0 to never delete events",
null),
SecStorageVmMTUSize(
"Advanced",
AgentManager.class,
Integer.class,
"secstorage.vm.mtu.size",
String.valueOf(SecondaryStorageVmManager.DEFAULT_SS_VM_MTUSIZE),
"MTU size (in Byte) of storage network in secondary storage vms",
null),
MaxTemplateAndIsoSize(
"Advanced",
ManagementServer.class,
Long.class,
"max.template.iso.size",
"50",
"The maximum size for a downloaded template or ISO (in GB).",
null),
SecStorageAllowedInternalDownloadSites(
"Advanced",
ManagementServer.class,
String.class,
"secstorage.allowed.internal.sites",
null,
"Comma separated list of cidrs internal to the datacenter that can host template download servers, please note 0.0.0.0 is not a valid site",
null),
SecStorageEncryptCopy(
"Advanced",
ManagementServer.class,
Boolean.class,
"secstorage.encrypt.copy",
"false",
"Use SSL method used to encrypt copy traffic between zones. Also ensures that the certificate assigned to the zone is used when generating links for external access.",
"true,false"),
SecStorageSecureCopyCert(
"Advanced",
ManagementServer.class,
String.class,
"secstorage.ssl.cert.domain",
"",
"SSL certificate used to encrypt copy traffic between zones",
"domainName"),
SecStorageCapacityStandby(
"Advanced",
AgentManager.class,
Integer.class,
"secstorage.capacity.standby",
"10",
"The minimal number of command execution sessions that system is able to serve immediately(standby capacity)",
null),
SecStorageSessionMax(
"Advanced",
AgentManager.class,
Integer.class,
"secstorage.session.max",
"50",
"The max number of command execution sessions that a SSVM can handle",
null),
SecStorageCmdExecutionTimeMax(
"Advanced",
AgentManager.class,
Integer.class,
"secstorage.cmd.execution.time.max",
"30",
"The max command execution time in minute",
null),
SecStorageProxy(
"Advanced",
AgentManager.class,
String.class,
"secstorage.proxy",
null,
"http proxy used by ssvm, in http://username:password@proxyserver:port format",
null),
AlertPurgeInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"alert.purge.interval",
"86400",
"The interval (in seconds) to wait before running the alert purge thread",
null),
AlertPurgeDelay(
"Advanced",
ManagementServer.class,
Integer.class,
"alert.purge.delay",
"0",
"Alerts older than specified number days will be purged. Set this value to 0 to never delete alerts",
null),
HostReservationReleasePeriod(
"Advanced",
ManagementServer.class,
Integer.class,
"host.reservation.release.period",
"300000",
"The interval in milliseconds between host reservation release checks",
null),
// LB HealthCheck Interval.
LBHealthCheck(
"Advanced",
ManagementServer.class,
String.class,
"healthcheck.update.interval",
"600",
"Time Interval to fetch the LB health check states (in sec)",
null),
NCCCmdTimeOut(
"Advanced",
ManagementServer.class,
Long.class,
"ncc.command.timeout",
"600000", // 10 minutes
"Command Timeout Interval (in millisec)",
null),
DirectAttachNetworkEnabled(
"Advanced",
ManagementServer.class,
Boolean.class,
"direct.attach.network.externalIpAllocator.enabled",
"false",
"Direct-attach VMs using external DHCP server",
"true,false"),
DirectAttachNetworkExternalAPIURL(
"Advanced",
ManagementServer.class,
String.class,
"direct.attach.network.externalIpAllocator.url",
null,
"Direct-attach VMs using external DHCP server (API url)",
null),
CheckPodCIDRs(
"Advanced",
ManagementServer.class,
String.class,
"check.pod.cidrs",
"true",
"If true, different pods must belong to different CIDR subnets.",
"true,false"),
NetworkGcWait(
"Advanced",
ManagementServer.class,
Integer.class,
"network.gc.wait",
"600",
"Time (in seconds) to wait before shutting down a network that's not in used",
null),
NetworkGcInterval("Advanced", ManagementServer.class, Integer.class, "network.gc.interval", "600", "Seconds to wait before checking for networks to shutdown", null),
CapacitySkipcountingHours(
"Advanced",
ManagementServer.class,
Integer.class,
"capacity.skipcounting.hours",
"3600",
"Time (in seconds) to wait before release VM's cpu and memory when VM in stopped state",
null),
VmStatsInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.stats.interval",
"60000",
"The interval (in milliseconds) when vm stats are retrieved from agents.",
null),
VmDiskStatsInterval("Advanced", ManagementServer.class, Integer.class, "vm.disk.stats.interval", "0", "Interval (in seconds) to report vm disk statistics.", null),
VolumeStatsInterval("Advanced", ManagementServer.class, Integer.class, "volume.stats.interval", "60000", "Interval (in miliseconds) to report volume statistics.", null),
VmTransitionWaitInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.tranisition.wait.interval",
"3600",
"Time (in seconds) to wait before taking over a VM in transition state",
null),
VmDiskThrottlingIopsReadRate(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.disk.throttling.iops_read_rate",
"0",
"Default disk I/O read rate in requests per second allowed in User vm's disk.",
null),
VmDiskThrottlingIopsWriteRate(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.disk.throttling.iops_write_rate",
"0",
"Default disk I/O writerate in requests per second allowed in User vm's disk.",
null),
VmDiskThrottlingBytesReadRate(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.disk.throttling.bytes_read_rate",
"0",
"Default disk I/O read rate in bytes per second allowed in User vm's disk.",
null),
VmDiskThrottlingBytesWriteRate(
"Advanced",
ManagementServer.class,
Integer.class,
"vm.disk.throttling.bytes_write_rate",
"0",
"Default disk I/O writerate in bytes per second allowed in User vm's disk.",
null),
ControlCidr(
"Advanced",
ManagementServer.class,
String.class,
"control.cidr",
"169.254.0.0/16",
"Changes the cidr for the control network traffic. Defaults to using link local. Must be unique within pods",
null),
ControlGateway("Advanced", ManagementServer.class, String.class, "control.gateway", "169.254.0.1", "gateway for the control network traffic", null),
HostCapacityTypeToOrderClusters(
"Advanced",
ManagementServer.class,
String.class,
"host.capacityType.to.order.clusters",
"CPU",
"The host capacity type (CPU or RAM) is used by deployment planner to order clusters during VM resource allocation",
"CPU,RAM"),
ApplyAllocationAlgorithmToPods(
"Advanced",
ManagementServer.class,
Boolean.class,
"apply.allocation.algorithm.to.pods",
"false",
"If true, deployment planner applies the allocation heuristics at pods first in the given datacenter during VM resource allocation",
"true,false"),
VmUserDispersionWeight(
"Advanced",
ManagementServer.class,
Float.class,
"vm.user.dispersion.weight",
"1",
"Weight for user dispersion heuristic (as a value between 0 and 1) applied to resource allocation during vm deployment. Weight for capacity heuristic will be (1 - weight of user dispersion)",
null),
VmAllocationAlgorithm(
"Advanced",
ManagementServer.class,
String.class,
"vm.allocation.algorithm",
"random",
"'random', 'firstfit', 'userdispersing', 'userconcentratedpod_random', 'userconcentratedpod_firstfit', 'firstfitleastconsumed' : Order in which hosts within a cluster will be considered for VM/volume allocation.",
null),
VmDeploymentPlanner(
"Advanced",
ManagementServer.class,
String.class,
"vm.deployment.planner",
"FirstFitPlanner",
"'FirstFitPlanner', 'UserDispersingPlanner', 'UserConcentratedPodPlanner': DeploymentPlanner heuristic that will be used for VM deployment.",
null),
ElasticLoadBalancerEnabled(
"Advanced",
ManagementServer.class,
String.class,
"network.loadbalancer.basiczone.elb.enabled",
"false",
"Whether the load balancing service is enabled for basic zones",
"true,false"),
ElasticLoadBalancerNetwork(
"Advanced",
ManagementServer.class,
String.class,
"network.loadbalancer.basiczone.elb.network",
"guest",
"Whether the elastic load balancing service public ips are taken from the public or guest network",
"guest,public"),
ElasticLoadBalancerVmMemory(
"Advanced",
ManagementServer.class,
Integer.class,
"network.loadbalancer.basiczone.elb.vm.ram.size",
"128",
"Memory in MB for the elastic load balancer vm",
null),
ElasticLoadBalancerVmCpuMhz(
"Advanced",
ManagementServer.class,
Integer.class,
"network.loadbalancer.basiczone.elb.vm.cpu.mhz",
"128",
"CPU speed for the elastic load balancer vm",
null),
ElasticLoadBalancerVmNumVcpu(
"Advanced",
ManagementServer.class,
Integer.class,
"network.loadbalancer.basiczone.elb.vm.vcpu.num",
"1",
"Number of VCPU for the elastic load balancer vm",
null),
ElasticLoadBalancerVmGcInterval(
"Advanced",
ManagementServer.class,
Integer.class,
"network.loadbalancer.basiczone.elb.gc.interval.minutes",
"30",
"Garbage collection interval to destroy unused ELB vms in minutes. Minimum of 5",
null),
EnableEC2API("Advanced", ManagementServer.class, Boolean.class, "enable.ec2.api", "false", "enable EC2 API on CloudStack", null),
EnableS3API("Advanced", ManagementServer.class, Boolean.class, "enable.s3.api", "false", "enable Amazon S3 API on CloudStack", null),
RecreateSystemVmEnabled(
"Advanced",
ManagementServer.class,
Boolean.class,
"recreate.systemvm.enabled",
"false",
"If true, will recreate system vm root disk whenever starting system vm",
"true,false"),
SetVmInternalNameUsingDisplayName(
"Advanced",
ManagementServer.class,
Boolean.class,
"vm.instancename.flag",
"false",
"If set to true, will set guest VM's name as it appears on the hypervisor, to its hostname. The flag is supported for VMware hypervisor only",
"true,false"),
IncorrectLoginAttemptsAllowed(
"Advanced",
ManagementServer.class,
Integer.class,
"incorrect.login.attempts.allowed",
"5",
"Incorrect login attempts allowed before the user is disabled (when value > 0). If value <=0 users are not disabled after failed login attempts",
null),
// Ovm
OvmPublicNetwork("Hidden", ManagementServer.class, String.class, "ovm.public.network.device", null, "Specify the public bridge on host for public network", null),
OvmPrivateNetwork("Hidden", ManagementServer.class, String.class, "ovm.private.network.device", null, "Specify the private bridge on host for private network", null),
OvmGuestNetwork("Hidden", ManagementServer.class, String.class, "ovm.guest.network.device", null, "Specify the private bridge on host for private network", null),
// Ovm3
Ovm3PublicNetwork("Hidden", ManagementServer.class, String.class, "ovm3.public.network.device", null, "Specify the public bridge on host for public network", null),
Ovm3PrivateNetwork("Hidden", ManagementServer.class, String.class, "ovm3.private.network.device", null, "Specify the private bridge on host for private network", null),
Ovm3GuestNetwork("Hidden", ManagementServer.class, String.class, "ovm3.guest.network.device", null, "Specify the guest bridge on host for guest network", null),
Ovm3StorageNetwork("Hidden", ManagementServer.class, String.class, "ovm3.storage.network.device", null, "Specify the storage bridge on host for storage network", null),
Ovm3HeartBeatTimeout(
"Advanced",