I've put together a short example:
https://gist.github.com/ptupitsyn/633bf86dd4beaf48d604fab97abb2dd1

It uses Ignite.NET from NuGet, and loads the REST module from an external
directory.

On Wed, May 3, 2023 at 8:14 AM <[email protected]> wrote:

> Hi Pavel,
>
>
>
> Basically  want  to  collect  cluster  metrics  and  show  it  in some
> dashboard.  So  wanted  to  take  help  of  Ignite  rest  points.
>
> https://ignite.apache.org/docs/latest/restapi
> <https://clicktime.symantec.com/15t5Zt4yLtMwuRxhLNAQz?h=9IiYXYTQoz6LcsqZt3SYnge_GM-KLLF49vTu-M5IZfk=&u=https://ignite.apache.org/docs/latest/restapi>
>
>
>
> Regards
>
> Satyajit
>
>
>
> *From:* satyajit.mandal.barclays.com via user <[email protected]>
> *Sent:* Wednesday, May 3, 2023 10:31 AM
> *To:* [email protected]
> *Cc:* [email protected]
> *Subject:* RE: Query :.NET Ignite Node deployment and Monitoring
>
>
>
> CAUTION: This email originated from outside our organisation -
> [email protected] Do not click on links, open attachments, or
> respond unless you recognize the sender and can validate the content is
> safe.
>
> Hi  Pavel,
>
>
>
> Am  referring  to  this  https://ignite.apache.org/docs/latest/restapi
> <https://clicktime.symantec.com/15t5Zt4yLtMwuRxhLNAQz?h=9IiYXYTQoz6LcsqZt3SYnge_GM-KLLF49vTu-M5IZfk=&u=https://ignite.apache.org/docs/latest/restapi>
>
> To enable HTTP connectivity, make sure that the ignite-rest-http module
> is enabled. If you use the binary distribution, copy the ignite-rest-http 
> module
> from IGNITE_HOME/libs/optional/ to the IGNITE_HOME/libs folder
>
>
>
>
>
> How  this  feature  can be  done  via  .NET code ?
>
>
>
> Thanks
>
> Satyajit
>
>
>
>
>
>
>
> *From:* Pavel Tupitsyn <[email protected]>
> *Sent:* Wednesday, May 3, 2023 10:21 AM
> *To:* Mandal, Satyajit: IT (PUN) <[email protected]>
> *Cc:* [email protected]
> *Subject:* Re: Query :.NET Ignite Node deployment and Monitoring
>
>
>
> CAUTION: This email originated from outside our organisation -
> [email protected] Do not click on links, open attachments, or respond
> unless you recognize the sender and can validate the content is safe.
>
> Hi Satyajit,
>
>
>
> NuGet deployment refers to the fact that you install Ignite from NuGet.
>
>
>
> Single-file deployment is about packaging your entire app (including your
> code, .NET code, Ignite dlls and jars) as a single file:
>
>
> https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli
> <https://clicktime.symantec.com/15t5eiGFfx1sjHPBnfBVH?h=rXQIwARAWC6FIrgZmaBiIdFnGHbaEJCdYNMnvtFRwHs=&u=https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs%3Dcli>
>
>
>
>
>
> > Is  this  issue  fixed  with  .NET 6  AND  Ignite 2.14?
>
> Yes.
>
>
>
>
>
> > How  can  we  enable  Rest  points  so  that  we  can  collect  metrics
>  for  Ignite cluster  like  heap  memory  usage  etc.. when  we are
>  hosting  Ignite as  .net node from  code.?
>
> Can you please clarify - which "Rest points" would you like to enable?
>
>
>
> On Tue, May 2, 2023 at 3:47 PM <[email protected]> wrote:
>
> Hi  Pavel,
>
>
>
> We  are planning  to  deploy WebApi  as  windows  service  which  will
> start Ignite  on  startup. Going  through the  Ignite deployment
> documentation  specific  to  .NET  and  it  mentions  these two  options.
>
> *NuGet Deployment:*
>
> *Single File Deployment:*
>
> *What’s  the  difference  between  these two deployments? *
>
> ·        For  Single File  Deployment it  mentions  that  See Troubleshooting:
> *DllNotFoundException*
> <https://clicktime.symantec.com/15t5Zt4yDLLHKLZGF6nLf?h=JTE1fXE9H6ZIUWyT-bU4e81riTS8sBpW5vY2ZmyLHso=&u=https://ignite.apache.org/docs/latest/net-specific/net-troubleshooting.html%23libcoreclr-not-found>
>  for
> a workaround that is required on .NET 5 with some Ignite versions. Is
> this  issue  fixed  with  .NET 6  AND  Ignite 2.14?
>
> *2nd  Query*  :  How  can  we  enable  Rest  points  so  that  we  can
> collect  metrics  for  Ignite cluster  like  heap  memory  usage  etc..
> when  we are  hosting  Ignite as  .net node from  code.?
>
>
>
> Regards
>
> Satyajit
>
>
>
>
>
>
>
>
>
>
>
> Barclays Execution Services Limited registered in England. Registered No.
> 1767980. Registered office: 1 Churchill Place, London, E14 5HP
>
> Barclays Execution Services Limited provides support and administrative
> services across Barclays group. Barclays Execution Services Limited is an
> appointed representative of Barclays Bank UK plc, Barclays Bank plc and
> Clydesdale Financial Services Limited. Barclays Bank UK plc and Barclays
> Bank plc are authorised by the Prudential Regulation Authority and
> regulated by the Financial Conduct Authority and the Prudential Regulation
> Authority. Clydesdale Financial Services Limited is authorised and
> regulated by the Financial Conduct Authority.
>
> This email and any attachments are confidential and intended solely for
> the addressee and may also be privileged or exempt from disclosure under
> applicable law. If you are not the addressee, or have received this email
> in error, please notify the sender and immediately delete it and any
> attachments from your system. Do not copy, use, disclose or otherwise act
> on any part of this email or its attachments.
>
> Internet communications are not guaranteed to be secure or virus-free. The
> Barclays group does not accept responsibility for any loss arising from
> unauthorised access to, or interference with, any internet communications
> by any third party, or from the transmission of any viruses. Replies to
> this email may be monitored by the Barclays group for operational or
> business reasons.
>
> Any opinion or other information in this email or its attachments that
> does not relate to the business of the Barclays group is personal to the
> sender and is not given or endorsed by the Barclays group.
>
> Unless specifically indicated, this e-mail is not an offer to buy or sell
> or a solicitation to buy or sell any securities, investment products or
> other financial product or service, an official confirmation of any
> transaction, or an official statement of Barclays.
>
> Barclays Execution Services Limited registered in England. Registered No.
> 1767980. Registered office: 1 Churchill Place, London, E14 5HP
>
> Barclays Execution Services Limited provides support and administrative
> services across Barclays group. Barclays Execution Services Limited is an
> appointed representative of Barclays Bank UK plc, Barclays Bank plc and
> Clydesdale Financial Services Limited. Barclays Bank UK plc and Barclays
> Bank plc are authorised by the Prudential Regulation Authority and
> regulated by the Financial Conduct Authority and the Prudential Regulation
> Authority. Clydesdale Financial Services Limited is authorised and
> regulated by the Financial Conduct Authority.
>
> This email and any attachments are confidential and intended solely for
> the addressee and may also be privileged or exempt from disclosure under
> applicable law. If you are not the addressee, or have received this email
> in error, please notify the sender and immediately delete it and any
> attachments from your system. Do not copy, use, disclose or otherwise act
> on any part of this email or its attachments.
>
> Internet communications are not guaranteed to be secure or virus-free. The
> Barclays group does not accept responsibility for any loss arising from
> unauthorised access to, or interference with, any internet communications
> by any third party, or from the transmission of any viruses. Replies to
> this email may be monitored by the Barclays group for operational or
> business reasons.
>
> Any opinion or other information in this email or its attachments that
> does not relate to the business of the Barclays group is personal to the
> sender and is not given or endorsed by the Barclays group.
>
> Unless specifically indicated, this e-mail is not an offer to buy or sell
> or a solicitation to buy or sell any securities, investment products or
> other financial product or service, an official confirmation of any
> transaction, or an official statement of Barclays.
>
> Barclays Execution Services Limited registered in England. Registered No.
> 1767980. Registered office: 1 Churchill Place, London, E14 5HP
>
> Barclays Execution Services Limited provides support and administrative
> services across Barclays group. Barclays Execution Services Limited is an
> appointed representative of Barclays Bank UK plc, Barclays Bank plc and
> Clydesdale Financial Services Limited. Barclays Bank UK plc and Barclays
> Bank plc are authorised by the Prudential Regulation Authority and
> regulated by the Financial Conduct Authority and the Prudential Regulation
> Authority. Clydesdale Financial Services Limited is authorised and
> regulated by the Financial Conduct Authority.
>
> This email and any attachments are confidential and intended solely for
> the addressee and may also be privileged or exempt from disclosure under
> applicable law. If you are not the addressee, or have received this email
> in error, please notify the sender and immediately delete it and any
> attachments from your system. Do not copy, use, disclose or otherwise act
> on any part of this email or its attachments.
>
> Internet communications are not guaranteed to be secure or virus-free. The
> Barclays group does not accept responsibility for any loss arising from
> unauthorised access to, or interference with, any internet communications
> by any third party, or from the transmission of any viruses. Replies to
> this email may be monitored by the Barclays group for operational or
> business reasons.
>
> Any opinion or other information in this email or its attachments that
> does not relate to the business of the Barclays group is personal to the
> sender and is not given or endorsed by the Barclays group.
>
> Unless specifically indicated, this e-mail is not an offer to buy or sell
> or a solicitation to buy or sell any securities, investment products or
> other financial product or service, an official confirmation of any
> transaction, or an official statement of Barclays.
>

Reply via email to