我已经使用am-pattern-1中提供的helm图表在Azure上设置了API管理器。我还设置了一个由Azure文件共享支持的持久卷,以便位于~/wso2am-3.2.0/repository/deployment/server/executionplans
和~/wso2am-3.2.0/repository/deployment/server/synapse-configs
中的文件能够在重新启动后继续运行。
但是,当我重新启动pod(或helm uninstall/helm install
API管理器(时,UI(devportal或publisher(总是显示一个空屏幕,显示已发布的API列表。考虑到设置,我希望API管理器显示以前发布的API。
当吊舱出现时,我可以在日志中看到API管理器";找到";那些API,但仍然无法显示它们:
[2021-04-07 16:00:26,705] INFO - DependencyTracker Endpoint : EricTest4--v1.0_APIproductionEndpoint was added to the Synapse configuration successfully
[2021-04-07 16:00:26,721] INFO - DependencyTracker Endpoint : EricTest4--v1.0_APIsandboxEndpoint was added to the Synapse configuration successfully
[2021-04-07 16:00:26,738] INFO - DependencyTracker Endpoint : EricTest5--v1.0_APIproductionEndpoint was added to the Synapse configuration successfully
[2021-04-07 16:00:26,754] INFO - DependencyTracker Endpoint : EricTest5--v1.0_APIsandboxEndpoint was added to the Synapse configuration successfully
这是一个已知的问题吗?是否有变通方法或解决方案?我正在使用API管理器3.2.0。
API管理器使用Solr索引来显示Publisher和Devportal中的API。AM-Pattern-01 Helm图表提供了MySQL配置以及Solr索引的单独卷装载。
如果Solr索引未正确完成,或者配置的注册表DB(SHARED_DB
(具有与API工件相关的不一致条目,则可以观察到空页面。
作为一个选项,您可以在API管理器的deployment.toml
中配置以下内容并重新启动服务器。这是为了重新索引工件。
[indexing]
re_indexing = 1