Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nacos 数据持久化 #322

Closed
doublewaters opened this issue Jun 22, 2022 · 5 comments
Closed

nacos 数据持久化 #322

doublewaters opened this issue Jun 22, 2022 · 5 comments

Comments

@doublewaters
Copy link

doublewaters commented Jun 22, 2022

使用helm部署单节点的nacos,数据持久化的的目的是什么
我在使用helm部署后出现

         ,--.
       ,--.'|
   ,--,:  : |                                           Nacos 2.0.3
,`--.'`|  ' :                       ,---.               Running in stand alone mode, All function modules
|   :  :  | |                      '   ,'\   .--.--.    Port: 8848
:   |   \ | :  ,--.--.     ,---.  /   /   | /  /    '   Pid: 1
|   : '  '; | /       \   /     \.   ; ,. :|  :  /`./   Console: http://maam-nacos-2-0-3-idaas-0.maam-nacos-2-0-3-idaas.maam.svc.cluster.local.:8848/nacos/index.html
'   ' ;.    ;.--.  .-. | /    / ''   | |: :|  :  ;_
|   | | \   | \__\/: . ..    ' / '   | .; : \  \    `.      https://nacos.io
'   : |  ; .' ," .--.; |'   ; :__|   :    |  `----.   \
|   | '`--'  /  /  ,.  |'   | '.'|\   \  /  /  /`--'  /
'   : |     ;  :   .'   \   :    : `----'  '--'.     /
;   |.'     |  ,     .-./\   \  /            `--'---'
'---'        `--`---'     `----'
2022-06-22 18:39:24,588 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@4c5204af' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-22 18:39:24,595 INFO Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-06-22 18:39:25,057 INFO Tomcat initialized with port(s): 8848 (http)
2022-06-22 18:39:25,888 INFO Root WebApplicationContext: initialization completed in 7627 ms
2022-06-22 18:39:28,252 WARN [WatchFileCenter] start close
2022-06-22 18:39:28,258 WARN [ThreadPoolManager] Start destroying ThreadPool
2022-06-22 18:39:28,258 WARN [NotifyCenter] Start destroying Publisher
2022-06-22 18:39:28,263 WARN [NotifyCenter] Destruction of the end
2022-06-22 18:39:28,260 WARN [WatchFileCenter] start to shutdown this watcher which is watch : /home/nacos/data/tps
2022-06-22 18:39:28,264 WARN [WatchFileCenter] start to shutdown this watcher which is watch : /home/nacos/conf
2022-06-22 18:39:28,265 WARN [WatchFileCenter] start to shutdown this watcher which is watch : /home/nacos/data/loader
2022-06-22 18:39:28,265 WARN [WatchFileCenter] already closed
2022-06-22 18:39:29,767 WARN [ThreadPoolManager] Destruction of the end

然后就自动退出了,没有error,这是什么问题

@doublewaters doublewaters changed the title nacos nacos 数据持久化 Jun 22, 2022
@weidonggg
Copy link

官网文档里始终没说为什么需要持久化存储,让人摸不着头脑。

@dengyaoyang
Copy link

官网文档里始终没说为什么需要持久化存储,让人摸不着头脑。
别人明明说清楚了,你自己不仔细看.

@weidonggg
Copy link

官网文档里始终没说为什么需要持久化存储,让人摸不着头脑。
别人明明说清楚了,你自己不仔细看.

我说的是容器化部署的时候需要挂载的持久化存储,不是指数据库,可以的话麻烦您给我贴个链接我瞧瞧。

@doublewaters
Copy link
Author

https://nacos.io/zh-cn/docs/use-nacos-with-kubernetes.html

在高级使用中,Nacos在K8S拥有自动扩容缩容和数据持久特性,请注意如果需要使用这部分功能请使用PVC持久卷,Nacos的自动扩容缩容需要依赖持久卷,以及数据持久化也是一样,本例中使用的是NFS来使用PVC.

@dengyaoyang
Copy link

dengyaoyang commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants