# This file can be modified with any options defined in the reference files. # Copy in parts of the reference files and modify as needed. # This file contains configuration keys and values for the Visualizer application. # ---------------------------------------------------------------------------------------------------------- # Visualizer Application Configurations Starts # ---------------------------------------------------------------------------------------------------------- app { # name of this application name = "CMDB Visualizer" # session timeout (in minutes) sessionTimeout = 60 # Interval time (in minutes) to check for expired sessions. # Note that expired sessions will not be logged out at the exact time # but instead when the expiration check interval is reached. expirationCheckInterval = 5 # Language is must to read language specific messages # Supported languages are mentioned below. # DO NOT CHANGE THIS SETTING i18n.langs=[ "en_US", "de_DE", "es_ES", "fr_CA", "fr_FR", "it_IT", "pt_BR", "ja_JP" ] } # Graph Node configurations node { # table name or object name which is considered as node table = "ca_owned_resource" # filter to apply while fetching the nodes. # this filter will only be applied during initial loading # and only when index based loading is disabled filter = "inactive=0" # order by column with direction orderby = "own_resource_id DESC" # attributes or columns to fetch. # NOTE: "id" attribute is mandatory and will be used as the node id, so, the column it points to should be unique # NOTE: "delete_flag" attribute is mandatory and will be used for cache deletion on deleting the CI and should be the last attribute # format= cachedName->actualDBColumnName, cachedName->actualDBColumnName attribute = [ "id->own_resource_uuid", "name->resource_name", "family->resource_family", "class->resource_class", "status->resource_status", "location->location_uuid", "manufacturer->manufacturer_uuid", "model->model_uuid", "vendor_repair->maintenance_vendor_uuid", "delete_flag->inactive" ] # maximum number of records in a single query during initial load maxFetchSize = 10000 # node loading mechanism, if, set to 'on' initial node loading will use the index file entries # else will simply fetch nodes from DB and cache those # supported values are [on/off] indexBasedLoading = off # index file path (complete path should be provided, relative path won't work) indexFilePath = "C:\\Program Files (x86)\\CA\\Service Desk Manager\\site\\nodes.index" # maximum number of nodes in index file maxIndexEntries = 100000 # interval at which to write the cached id values to index file (in Minutes) indexFileWriteInterval = 30 # maximum number of nodes to load into cache on system startup # if 'indexBasedLoading' is 'on' then this value will be ignored maxNodeLoadOnStartUp = 100000 } ## Use this section to change the cache names for nodes and node master data ## Else simply leave it AS-IS cache { # name of the cache to store the graph master data # make sure this cache configuration is present in ehcache.xml graphMasterDataCacheName = "graph_master_data" # name of the cache to store the graph nodes data # make sure this cache configuration is present in ehcache.xml graphNodesCacheName = "graph_node" # name of the cache to store the graph filters data # make sure this cache configuration is present in ehcache.xml filterCacheName = "filter" # name of the cache to store the graph meta data # make sure this cache configuration is present in ehcache.xml graphMetaDataCacheName = "graph_meta_data" # name of the cache to store the contact data # make sure this cache configuration is present in ehcache.xml contactCacheName = "contact_cache" # name of the cache to store the Authorization data # make sure this cache configuration is present in ehcache.xml authorizeDataCacheName = "authorization_data_cache" # name of the cache to store the Visualizer Configuration and ci relationship type styles # make sure this cache configuration is present in ehcache.xml visualizerConfigCacheName = "visualizer_config_cache" } # Running mode - dev mode loads only max 100 CIs # Values [prod/dev] running.mode = prod # domsrvr list to connect for Visualizer sdm.domsrvr.viz = domsrvr # Log4j file refresh interval for BOP Logging (in seconds) sdm.log4jRefreshInterval = "300000" # we are using generic api to fetch SDM factory data # they can be controlled with these variables generic.api { # below factory are available in generic get operation # add more based on your need with comma separated value # Note: If you add any new factory here, ensure to add that to AuthDataCacheLoader also GET = [nr,ci_mdr_provider,ci_mdr_idmap,casm_pic_data,rss,ci_rel_type,vis_configuration] } db { # All DB details go here # This key is used to decide which db configuration to pick # if the value is say, for example "default", it will pick the db configurations with name "default" # NOTE: "default" db key is reserved for SDM, do not use this for any other Database, else, # application will fail to start defaultDB = "default" # max number of records that can be fetched at a time # This setting is common for all the DB's maxFetchSize = 100000 # maximum number of values that can be set at a time in an IN clause in DB query # if more values are there in the query than this value, that will be split based # on this value and retrieved in batches inClausePlaceHonderCount = 1000 ## Database configuration for SDM ## !!!!! DO NOT USE THIS CONFIGURATION FOR ANY OTHER DATABASE !!!! ## In order to use a different database please create a separate configuration ## and set that configuration name in "defaultDB" key default { # Only driver name is required here all other configurations are pulled from SDM # Database type like ORACLE or SQL (for MS SQL) # type = ORACLE # Database connection URL # Example for MS SQL - jdbc:sqlserver://localhost:1433;database=mdb # Example for Oracle - jdbc:oracle:thin:@localhost:1521:mdb # connectionURL = jdbc:sqlserver://localhost:1433;database=mdb # DB Driver fully qualified class name # Please make sure that the driver name is proper # Example for MS SQL - com.microsoft.sqlserver.jdbc.SQLServerDriver # Example for Oracle - oracle.jdbc.OracleDriver # driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver" # Database user name - Example sys/sa/mdbadmin with Admin privilege # dbUser = mdbadmin # Encrypted DB password, comes from SDM NX variables # dbPassword = "" # All DB connection pool and data fetching configurations go here connection { # initial number of connections to be spun initialPoolSize = 8 # max number of connections to be spun maxPoolSize = 12 # at what intervals the connection cleanup job will run to close stale connections # this value is in minutes (can not be less than 10) cleanupSchedulerInterval = 15 } } ## Database configuration for other than SDM ## and set this configuration name in "defaultDB" key to use this DB test { # Database type like ORACLE or MySQL or SQL (for MS SQL) # type = ORACLE # Database connection URL # connectionURL = jdbc:sqlserver://localhost:1433;database=mdb # DB Driver fully qualified class name # Please make sure that the driver name is proper # driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver" # Database user name # dbUser = mdbadmin # Database password # dbPassword = test123 connection { initialPoolSize = 8 maxPoolSize = 12 cleanupSchedulerInterval = 15 } } } # ---------------------------------------------------------------------------------------------------------- # Visualizer Application Configurations Ends # ---------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------- # AKKA Actors Configurations Starts # ---------------------------------------------------------------------------------------------------------- # DO NOT CHANGE THE BELOW SETTINGS akka { # Akka installs JVM shutdown hooks by default, e.g. in CoordinatedShutdown and Artery. This property will # not disable user-provided hooks registered using `CoordinatedShutdown#addCancellableJvmShutdownHook`. # This property is related to `akka.coordinated-shutdown.run-by-jvm-shutdown-hook` below. # This property makes it possible to disable all such hooks if the application itself # or a higher level framework such as Play prefers to install the JVM shutdown hook and # terminate the ActorSystem itself, with or without using CoordinatedShutdown. jvm-shutdown-hooks = on # Set Akka to use SLF4J and set the default level to DEBUG # Log levels will be filtered in logback.xml. loggers = ["akka.event.slf4j.Slf4jLogger"] # Log level used by the configured loggers (see "loggers") as soon # as they have been started; before that, see "stdout-loglevel" # Options: OFF, ERROR, WARNING, INFO, DEBUG loglevel = "DEBUG" # Log level for the very basic logger activated during AkkaApplication startup # Options: OFF, ERROR, WARNING, INFO, DEBUG stdout-loglevel = "DEBUG" # DO NOT CHANGE THE BELOW SETTINGS actor { default-dispatcher { type = Dispatcher # This will be used if you have set "executor = "fork-join-executor"" fork-join-executor { # Setting to "FIFO" to use queue like peeking mode which "poll" or "LIFO" to use stack # like peeking mode which "pop". task-peeking-mode = "FIFO", # @parallelism-min -> Min number of threads to cap factor-based parallelism number to parallelism-min = 4, # @parallelism-factor -> Parallelism (threads) ... ceil(available processors * factor) parallelism-factor = 3.0, # @parallelism-max -> Max number of threads to cap factor-based parallelism number to parallelism-max = 32 }, # Throughput defines the maximum number of messages to be # processed per actor before the thread jumps to the next actor. # Set to 1 for as fair as possible throughput = 1 }, # blocking-io-dispatcher { type = Dispatcher executor = "thread-pool-executor" thread-pool-executor { fixed-pool-size = 32 } throughput = 1 } default-mailbox { mailbox-type = akka.dispatch.UnboundedControlAwareMailbox } } # Use a dedicated dispatcher for akka clusters cluster.use-dispatcher = cluster-dispatcher cluster-dispatcher { type = "Dispatcher" executor = "fork-join-executor" fork-join-executor { parallelism-min = 1 parallelism-max = 1 } } } # ---------------------------------------------------------------------------------------------------------- # AKKA Actors Configurations Ends # ----------------------------------------------------------------------------------------------------------