Advertisement
dcshah2002

thingsboard.conf

Jan 14th, 2024 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 1.78 KB | Software | 0 0
  1. #
  2. # Copyright © 2016-2023 The Thingsboard Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. #     http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16.  
  17. export JAVA_OPTS="$JAVA_OPTS -Dplatform=deb -Dinstall.data_dir=/usr/share/thingsboard/data"
  18. export JAVA_OPTS="$JAVA_OPTS -Xlog:gc*,heap*,age*,safepoint=debug:file=/var/log/thingsboard/gc.log:time,uptime,level,tags:filecount=10,filesize=10M"
  19. export JAVA_OPTS="$JAVA_OPTS -XX:+IgnoreUnrecognizedVMOptions -XX:+HeapDumpOnOutOfMemoryError"
  20. export JAVA_OPTS="$JAVA_OPTS -XX:-UseBiasedLocking -XX:+UseTLAB -XX:+ResizeTLAB -XX:+PerfDisableSharedMem -XX:+UseCondCardMark"
  21. export JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC -XX:MaxGCPauseMillis=500 -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:MaxTenuringThreshold=10"
  22. export LOG_FILENAME=thingsboard.out
  23. export LOADER_PATH=/usr/share/thingsboard/conf,/usr/share/thingsboard/extensions
  24. export SQL_DATA_FOLDER=/usr/share/thingsboard/data/sql
  25.  
  26. # DB Configuration
  27. export DATABASE_TS_TYPE=sql
  28. export SPRING_DATASOURCE_URL=jdbc:postgresql://mydb.postgres.database.azure.com:5432/thingsboard
  29. export SPRING_DATASOURCE_USERNAME=[correct-username]
  30. export SPRING_DATASOURCE_PASSWORD=[correct-password]
  31. # Specify partitioning size for timestamp key-value storage. Allowed values: DAYS, MONTHS, YEARS, INDEFINITE.
  32. export SQL_POSTGRES_TS_KV_PARTITIONING=MONTHS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement