Skip to content

Commit

Permalink
set timeout of rt_admin to 1 minute. (#2719)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiaojian authored May 22, 2023
1 parent fb79c62 commit 0a5c144
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
3 changes: 3 additions & 0 deletions flex/bin/rt_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ int main(int argc, char** argv) {
port = atoi(port_env);
}
httplib::Client cli(url, port);
cli.set_connection_timeout(0, 300000);
cli.set_read_timeout(60, 0);
cli.set_write_timeout(60, 0);

std::string op = argv[1];
if (op == "--version" || op == "-v") {
Expand Down
4 changes: 2 additions & 2 deletions flex/docs/html/graph__db__session_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="preprocessor">#endif // GRAPHSCOPE_DATABASE_GRAPH_DB_SESSION_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_a655ca0af9d7a9260fd78cca53b7c6035"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#a655ca0af9d7a9260fd78cca53b7c6035">gs::GraphDBSession::Eval</a></div><div class="ttdeci">std::vector&lt; char &gt; Eval(const std::string &amp;input)</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:68</div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_ab65f62a3d02a37128bd2532703c7eef1"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#ab65f62a3d02a37128bd2532703c7eef1">gs::GraphDBSession::GetAppInfo</a></div><div class="ttdeci">void GetAppInfo(Encoder &amp;result)</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:131</div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_ab65f62a3d02a37128bd2532703c7eef1"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#ab65f62a3d02a37128bd2532703c7eef1">gs::GraphDBSession::GetAppInfo</a></div><div class="ttdeci">void GetAppInfo(Encoder &amp;result)</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:135</div></div>
<div class="ttc" id="asingle__vertex__insert__transaction_8h_html"><div class="ttname"><a href="single__vertex__insert__transaction_8h.html">single_vertex_insert_transaction.h</a></div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_a039473d185d29c007fb05ab83f5bf6c1"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#a039473d185d29c007fb05ab83f5bf6c1">gs::GraphDBSession::GetSingleEdgeInsertTransaction</a></div><div class="ttdeci">SingleEdgeInsertTransaction GetSingleEdgeInsertTransaction()</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:41</div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_a9973c50a1d6b38f7a56ee037294a208b"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#a9973c50a1d6b38f7a56ee037294a208b">gs::GraphDBSession::db_</a></div><div class="ttdeci">GraphDB &amp; db_</div><div class="ttdef"><b>Definition:</b> graph_db_session.h:70</div></div>
Expand Down Expand Up @@ -175,7 +175,7 @@
<div class="ttc" id="aapp__base_8h_html"><div class="ttname"><a href="app__base_8h.html">app_base.h</a></div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_a4c0fb4f40cf126fc16f1dad82fd2d9df"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#a4c0fb4f40cf126fc16f1dad82fd2d9df">gs::GraphDBSession::schema</a></div><div class="ttdeci">const Schema &amp; schema() const</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:59</div></div>
<div class="ttc" id="aclassgs_1_1UpdateTransaction_html"><div class="ttname"><a href="classgs_1_1UpdateTransaction.html">gs::UpdateTransaction</a></div><div class="ttdef"><b>Definition:</b> update_transaction.h:37</div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_ac0e824d3027272b459067cfea1836073"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#ac0e824d3027272b459067cfea1836073">gs::GraphDBSession::SessionId</a></div><div class="ttdeci">int SessionId() const</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:133</div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_ac0e824d3027272b459067cfea1836073"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#ac0e824d3027272b459067cfea1836073">gs::GraphDBSession::SessionId</a></div><div class="ttdeci">int SessionId() const</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:137</div></div>
<div class="ttc" id="aread__transaction_8h_html"><div class="ttname"><a href="read__transaction_8h.html">read_transaction.h</a></div></div>
<div class="ttc" id="aclassgs_1_1GraphDBSession_html_a7c9a4ff1b14406bde6bf9be51496bf91"><div class="ttname"><a href="classgs_1_1GraphDBSession.html#a7c9a4ff1b14406bde6bf9be51496bf91">gs::GraphDBSession::get_vertex_property_column</a></div><div class="ttdeci">std::shared_ptr&lt; ColumnBase &gt; get_vertex_property_column(uint8_t label, const std::string &amp;col_name) const</div><div class="ttdef"><b>Definition:</b> graph_db_session.cc:61</div></div>
<!-- start footer part -->
Expand Down
18 changes: 9 additions & 9 deletions flex/docs/html/insert__transaction_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,36 +130,36 @@
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="preprocessor">#endif // GRAPHSCOPE_DATABASE_INSERT_TRANSACTION_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a4fde75b3ec59cfbd9592fd05adeb613b"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a4fde75b3ec59cfbd9592fd05adeb613b">gs::InsertTransaction::get_vertex_with_retries</a></div><div class="ttdeci">static bool get_vertex_with_retries(MutablePropertyFragment &amp;graph, label_t label, oid_t oid, vid_t &amp;lid)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:176</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a4fde75b3ec59cfbd9592fd05adeb613b"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a4fde75b3ec59cfbd9592fd05adeb613b">gs::InsertTransaction::get_vertex_with_retries</a></div><div class="ttdeci">static bool get_vertex_with_retries(MutablePropertyFragment &amp;graph, label_t label, oid_t oid, vid_t &amp;lid)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:179</div></div>
<div class="ttc" id="astructgs_1_1Any_html"><div class="ttname"><a href="structgs_1_1Any.html">gs::Any</a></div><div class="ttdef"><b>Definition:</b> types.h:67</div></div>
<div class="ttc" id="anamespacegs_html_a4cad570efc8f4ee4a5f8c76d1265b4af"><div class="ttname"><a href="namespacegs.html#a4cad570efc8f4ee4a5f8c76d1265b4af">gs::oid_t</a></div><div class="ttdeci">int64_t oid_t</div><div class="ttdef"><b>Definition:</b> types.h:31</div></div>
<div class="ttc" id="anamespacegs_html_a623c7eb1bad3c06968c77306473d4df0"><div class="ttname"><a href="namespacegs.html#a623c7eb1bad3c06968c77306473d4df0">gs::timestamp_t</a></div><div class="ttdeci">uint32_t timestamp_t</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
<div class="ttc" id="autils_2property_2types_8h_html"><div class="ttname"><a href="utils_2property_2types_8h.html">types.h</a></div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_ad84f753fd3a37903b1f6ab8c12b9e523"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#ad84f753fd3a37903b1f6ab8c12b9e523">gs::InsertTransaction::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:166</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_ad84f753fd3a37903b1f6ab8c12b9e523"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#ad84f753fd3a37903b1f6ab8c12b9e523">gs::InsertTransaction::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:169</div></div>
<div class="ttc" id="anamespacegs_html_a964c2419ecf69b632a1287e8761bba0c"><div class="ttname"><a href="namespacegs.html#a964c2419ecf69b632a1287e8761bba0c">gs::vid_t</a></div><div class="ttdeci">uint32_t vid_t</div><div class="ttdef"><b>Definition:</b> types.h:30</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html"><div class="ttname"><a href="classgs_1_1InsertTransaction.html">gs::InsertTransaction</a></div><div class="ttdef"><b>Definition:</b> insert_transaction.h:32</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_ae7b1807a6f0ab631a0f29ff1d115562b"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#ae7b1807a6f0ab631a0f29ff1d115562b">gs::InsertTransaction::InsertTransaction</a></div><div class="ttdeci">InsertTransaction(MutablePropertyFragment &amp;graph, ArenaAllocator &amp;alloc, WalWriter &amp;logger, VersionManager &amp;vm, timestamp_t timestamp)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:24</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a5c00fc7cde94f4f15ae8294c0ab40f99"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a5c00fc7cde94f4f15ae8294c0ab40f99">gs::InsertTransaction::timestamp_</a></div><div class="ttdeci">timestamp_t timestamp_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:68</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a9d4a9910b8e116a97df7e19896ed329e"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a9d4a9910b8e116a97df7e19896ed329e">gs::InsertTransaction::Commit</a></div><div class="ttdeci">void Commit()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:101</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a9d4a9910b8e116a97df7e19896ed329e"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a9d4a9910b8e116a97df7e19896ed329e">gs::InsertTransaction::Commit</a></div><div class="ttdeci">void Commit()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:104</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a05353c187f65776ccddee193c75d1a77"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a05353c187f65776ccddee193c75d1a77">gs::InsertTransaction::arc_</a></div><div class="ttdeci">grape::InArchive arc_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:60</div></div>
<div class="ttc" id="anamespacegs_html"><div class="ttname"><a href="namespacegs.html">gs</a></div><div class="ttdef"><b>Definition:</b> mutable_csr.cc:21</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a8851469f399f7f7b147eda3a070c5bd3"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a8851469f399f7f7b147eda3a070c5bd3">gs::InsertTransaction::alloc_</a></div><div class="ttdeci">ArenaAllocator &amp; alloc_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:65</div></div>
<div class="ttc" id="aclassgs_1_1ArenaAllocator_html"><div class="ttname"><a href="classgs_1_1ArenaAllocator.html">gs::ArenaAllocator</a></div><div class="ttdef"><b>Definition:</b> allocators.h:26</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_aa031ac66e360b5173f76334c6e40e6ca"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#aa031ac66e360b5173f76334c6e40e6ca">gs::InsertTransaction::timestamp</a></div><div class="ttdeci">timestamp_t timestamp() const</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:131</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_aa031ac66e360b5173f76334c6e40e6ca"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#aa031ac66e360b5173f76334c6e40e6ca">gs::InsertTransaction::timestamp</a></div><div class="ttdeci">timestamp_t timestamp() const</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:134</div></div>
<div class="ttc" id="aclassgs_1_1MutablePropertyFragment_html"><div class="ttname"><a href="classgs_1_1MutablePropertyFragment.html">gs::MutablePropertyFragment</a></div><div class="ttdef"><b>Definition:</b> mutable_property_fragment.h:34</div></div>
<div class="ttc" id="aclassgs_1_1WalWriter_html"><div class="ttname"><a href="classgs_1_1WalWriter.html">gs::WalWriter</a></div><div class="ttdef"><b>Definition:</b> wal.h:51</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a5224891c50c6eeebc4fb383db9cbb977"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a5224891c50c6eeebc4fb383db9cbb977">gs::InsertTransaction::AddVertex</a></div><div class="ttdeci">bool AddVertex(label_t label, oid_t id, const std::vector&lt; Any &gt; &amp;props)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:34</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a7459c8e18b32dbfbfffdd66158ccb6f7"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a7459c8e18b32dbfbfffdd66158ccb6f7">gs::InsertTransaction::IngestWal</a></div><div class="ttdeci">static void IngestWal(MutablePropertyFragment &amp;graph, uint32_t timestamp, char *data, size_t length, ArenaAllocator &amp;alloc)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:133</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a5224891c50c6eeebc4fb383db9cbb977"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a5224891c50c6eeebc4fb383db9cbb977">gs::InsertTransaction::AddVertex</a></div><div class="ttdeci">bool AddVertex(label_t label, oid_t id, const std::vector&lt; Any &gt; &amp;props)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:37</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a7459c8e18b32dbfbfffdd66158ccb6f7"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a7459c8e18b32dbfbfffdd66158ccb6f7">gs::InsertTransaction::IngestWal</a></div><div class="ttdeci">static void IngestWal(MutablePropertyFragment &amp;graph, uint32_t timestamp, char *data, size_t length, ArenaAllocator &amp;alloc)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:136</div></div>
<div class="ttc" id="aclassgs_1_1VersionManager_html"><div class="ttname"><a href="classgs_1_1VersionManager.html">gs::VersionManager</a></div><div class="ttdef"><b>Definition:</b> version_manager.h:34</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_aa2314dda213ebbb737c2bdd19dd220c5"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#aa2314dda213ebbb737c2bdd19dd220c5">gs::InsertTransaction::logger_</a></div><div class="ttdeci">WalWriter &amp; logger_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:66</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_abc9638822adffcc9bc1ae5eb4cfad555"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#abc9638822adffcc9bc1ae5eb4cfad555">gs::InsertTransaction::AddEdge</a></div><div class="ttdeci">bool AddEdge(label_t src_label, oid_t src, label_t dst_label, oid_t dst, label_t edge_label, const Any &amp;prop)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:65</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_abc9638822adffcc9bc1ae5eb4cfad555"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#abc9638822adffcc9bc1ae5eb4cfad555">gs::InsertTransaction::AddEdge</a></div><div class="ttdeci">bool AddEdge(label_t src_label, oid_t src, label_t dst_label, oid_t dst, label_t edge_label, const Any &amp;prop)</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:68</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a3b908114c80797331d5c77d512c33fb3"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a3b908114c80797331d5c77d512c33fb3">gs::InsertTransaction::graph_</a></div><div class="ttdeci">MutablePropertyFragment &amp; graph_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:64</div></div>
<div class="ttc" id="astorages_2rt__mutable__graph_2types_8h_html"><div class="ttname"><a href="storages_2rt__mutable__graph_2types_8h.html">types.h</a></div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a7e9a11ab78ce807a16be91682ad46904"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a7e9a11ab78ce807a16be91682ad46904">gs::InsertTransaction::vm_</a></div><div class="ttdeci">VersionManager &amp; vm_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:67</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a2987a1c2f1387af8d70ce89cef33e223"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a2987a1c2f1387af8d70ce89cef33e223">gs::InsertTransaction::Abort</a></div><div class="ttdeci">void Abort()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:123</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a2987a1c2f1387af8d70ce89cef33e223"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a2987a1c2f1387af8d70ce89cef33e223">gs::InsertTransaction::Abort</a></div><div class="ttdeci">void Abort()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:126</div></div>
<div class="ttc" id="anamespacegs_html_aec1a06c47ba9c4b2c5ece79caa510cb2"><div class="ttname"><a href="namespacegs.html#aec1a06c47ba9c4b2c5ece79caa510cb2">gs::label_t</a></div><div class="ttdeci">uint8_t label_t</div><div class="ttdef"><b>Definition:</b> types.h:32</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a4bacd30230b5323af0a359050e1cdcb6"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a4bacd30230b5323af0a359050e1cdcb6">gs::InsertTransaction::added_vertices_</a></div><div class="ttdeci">std::set&lt; std::pair&lt; label_t, oid_t &gt; &gt; added_vertices_</div><div class="ttdef"><b>Definition:</b> insert_transaction.h:62</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a41abb204ba98468c4fdfbc588a7c54c7"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a41abb204ba98468c4fdfbc588a7c54c7">gs::InsertTransaction::~InsertTransaction</a></div><div class="ttdeci">~InsertTransaction()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:32</div></div>
<div class="ttc" id="aclassgs_1_1InsertTransaction_html_a41abb204ba98468c4fdfbc588a7c54c7"><div class="ttname"><a href="classgs_1_1InsertTransaction.html#a41abb204ba98468c4fdfbc588a7c54c7">gs::InsertTransaction::~InsertTransaction</a></div><div class="ttdeci">~InsertTransaction()</div><div class="ttdef"><b>Definition:</b> insert_transaction.cc:35</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
Expand Down
Loading

0 comments on commit 0a5c144

Please sign in to comment.