github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/vvm/consts.go (about) 1 /* 2 * Copyright (c) 2022-present unTill Pro, Ltd. 3 */ 4 5 package vvm 6 7 import ( 8 "time" 9 10 "github.com/voedger/voedger/pkg/istorage/cas" 11 "github.com/voedger/voedger/pkg/istructs" 12 "github.com/voedger/voedger/pkg/router" 13 ) 14 15 const ( 16 DefaultNumCommandProcessors istructs.NumCommandProcessors = 10 17 DefaultNumQueryProcessors istructs.NumQueryProcessors = 10 // <=0 -> 1 query processor will exist anyway 18 DefaultQuotasChannelsFactor = 100 // Quotas.Channels will be NumCommandProcessors * DefaultQuotasFactor 19 DefaultQuotasChannelsPerSubject = 50 20 DefaultQuotasSubscriptionsFactor = 1000 // Quotas.Subscriptions will be NumCommandProcessors * DefaultQuotasSubscriptionsFactor 21 DefaultQuotasSubscriptionsPerSubject = 100 22 DefaultMetricsServicePort = 8000 23 DefaultCacheSize = 1024 * 1024 * 1024 // 1Gb 24 ShortestPossibleFunctionNameLen = len("q.a.a") 25 DefaultBLOBWorkersNum = 10 26 DefaultRetryAfterSecondsOn503 = 1 27 DefaultMaxPrepareQueries = 10 28 DefaultBLOBMaxSize = router.BLOBMaxSizeType(20971520) // 20Mb 29 DefaultVVMPort = router.DefaultPort 30 actualizerFlushInterval = time.Millisecond * 500 31 defaultCassandraPort = 9042 32 ) 33 34 const ( 35 ProcessorChannel_Command ProcessorChannelType = iota 36 ProcessorChannel_Query 37 ) 38 39 var ( 40 LocalHost = "http://127.0.0.1" 41 DefaultTimeFunc = time.Now 42 DefaultCasParams = cas.CassandraParamsType{ 43 Hosts: "127.0.0.1", 44 Port: defaultCassandraPort, 45 KeyspaceWithReplication: cas.SimpleWithReplication, 46 } 47 )