将WSO2 API网关连接到WSO2 APIM分析的问题

问题描述 投票:0回答:1

将wso2 apim分析与wso2 apim套件集成后,我有此日志。该模式完全分布在k8s集群中。我使用jartoboundle.sh脚本将postgresql驱动程序转换为osgi boundle。该分析在开始时确实有效,但是一段时间后,我不断收到这样的错误和有关ssl的错误(无法借用ssl客户端)。是什么原因引起的?谢谢

ERROR {org.wso2.carbon.siddhi.store.api.rest.impl.StoresApiServiceImpl} - Error while querying for siddhiApp: APIM_ACCESS_SUMMARY, with query: from ApiUserPerAppAgg_SECONDS select AGG_TIMESTAMP limit 1; Error: Error executing 'store_select_query_ApiUserPerAppAgg_SECONDS', Error initializing connection: HikariPool-5 - Connection is not available, request timed out after 30000ms. org.wso2.siddhi.core.exception.StoreQueryCreationException: Error executing 'store_select_query_ApiUserPerAppAgg_SECONDS', Error initializing connection: HikariPool-5 - Connection is not available, request timed out after 30000ms.
        at org.wso2.siddhi.core.SiddhiAppRuntime.query(SiddhiAppRuntime.java:308)
        at org.wso2.siddhi.core.SiddhiAppRuntime.query(SiddhiAppRuntime.java:271)
        at org.wso2.carbon.siddhi.store.api.rest.impl.StoresApiServiceImpl.query(StoresApiServiceImpl.java:66)
        at org.wso2.carbon.siddhi.store.api.rest.StoresApi.query(StoresApi.java:78)
        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.wso2.msf4j.internal.router.HttpMethodInfo.invokeResource(HttpMethodInfo.java:187)
        at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:143)
        at org.wso2.msf4j.internal.MSF4JHttpConnectorListener.dispatchMethod(MSF4JHttpConnectorListener.java:218)
        at org.wso2.msf4j.internal.MSF4JHttpConnectorListener.lambda$onMessage$57(MSF4JHttpConnectorListener.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.siddhi.core.exception.StoreQueryRuntimeException: Error executing 'store_select_query_ApiUserPerAppAgg_SECONDS', Error initializing connection: HikariPool-5 - Connection is not available, request timed out after 30000ms.
        at org.wso2.siddhi.core.query.FindStoreQueryRuntime.execute(FindStoreQueryRuntime.java:112)
        at org.wso2.siddhi.core.SiddhiAppRuntime.query(SiddhiAppRuntime.java:301)
        ... 13 more
Caused by: org.wso2.extension.siddhi.store.rdbms.exception.RDBMSTableException: Error initializing connection: HikariPool-5 - Connection is not available, request timed out after 30000ms.
        at org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.getConnection(RDBMSEventTable.java:1031)
        at org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.getConnection(RDBMSEventTable.java:1016)
        at org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.find(RDBMSEventTable.java:465)
        at org.wso2.siddhi.core.table.record.AbstractRecordTable.find(AbstractRecordTable.java:129)
        at org.wso2.siddhi.core.table.Table.find(Table.java:173)
        at org.wso2.siddhi.core.query.FindStoreQueryRuntime.execute(FindStoreQueryRuntime.java:83)
        ... 14 more
Caused by: java.sql.SQLTransientConnectionException: HikariPool-5 - Connection is not available, request timed out after 30000ms.
        at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:213)
        at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:163)
        at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:85)
        at org.wso2.extension.siddhi.store.rdbms.RDBMSEventTable.getConnection(RDBMSEventTable.java:1028)
        ... 19 more

wso2 wso2-am wso2sp
1个回答
0
投票

当Analytics Server与数据库服务器之间的连接不正常时,会发生此问题。由于API-M Analytics大量使用并依赖数据库,因此最好具有可靠的数据库服务器和连接性,以便顺利运行API-M Analytics。

© www.soinside.com 2019 - 2024. All rights reserved.