Encontrar

Pregunta
· 22 nov, 2024

IKO, webgateways and the DirectoryIndex

Good morning dear community,

This is like my first post in this community. Let's see how this turns out.
I have a question about the Intersystems Kubernetes Operator and the deployment of the webgateways.

I am responsible for the hosting and deployment of the apps. For the future we are planning to host our application in a kubernetes cluster. I am using the IKO for this.
I am using webgateways, for external access as separate pods. And sidecar containers for internal access, like the management portal.

My current Problem is the configuration of the webgateways. Our application is hosted on /csp/reise/, but I specifically need to specify our index.csp, to access the application /csp/reise/index.csp

Of course, this is not very pretty.

I have already set the DirectoryIndex to index.csp and even /csp/reise/index.csp, but when I access /csp/reise and /csp/reise/.
I get an error 404 on both urls.
But I am able to access /csp/reise/index.csp

This is my current CSP.conf, which is just the basic autogenerated configuration, but I added the RedirectMatch and DirectoryIndex.

    CSPModulePath "${ISC_PACKAGE_INSTALLDIR}/bin/"
    CSPConfigPath "${ISC_PACKAGE_INSTALLDIR}/bin/"

    RedirectMatch ^/$ /csp/reise/
    DirectoryIndex index.csp index.html

    <Location "/csp/reise">
        CSP On
        SetHandler csp-handler-sa
    </Location>

    <Directory "${ISC_PACKAGE_INSTALLDIR}/bin">
    AllowOverride None
    Options None
    Require all granted
    <FilesMatch "\.(log|ini|pid|exe)$">
        Require all denied
    </FilesMatch>
    </Directory>

My suspicion is, that the apache server expects an existing file, for the DirectoryIndex to be functional.
But since this just forwards the request, apache can't handle this.

I am thinking if the webgateway would be better suited with nginx, or if my ingress controller could handle the incoming traffic.

Am I missing something? Is this just not possible to achieve?

Thank you for your help.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 22 nov, 2024 Lectura de 1 min

Cómo la replicación sincroniza archivos que no son de base de datos

Rúbrica de Preguntas Frecuentes de InterSystems

La replicación o mirroring solo sincroniza archivos de base de datos.

Para sincronizar otros archivos necesarios para vuestra aplicación (archivos CSP, imágenes, documentos, etc.) entre los dos servidores que forman el conjunto de réplica, seguid uno de los siguientes enfoques:

  1. Colocad esos archivos en un disco compartido introduciendo un NAS u otro dispositivo similar.
  2. O utilizad software de sincronización de archivos para sincronizar los archivos entre los dos servidores.
Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 22 nov, 2024

Calculate STD DEV with ObjectScript

Hence the question: is there a way to do that?

The goal is to get data (from half a thousand to 3-4 thousands lines) from DB, calculate standart deviation  then use it as logical condition in analyzer. 

For example IF std > custom_value = show_the_result ELSE null

There is a STDDEV(MDX) method  used in Analyzer but it is a measure and it can not be used as logical condition (correct me if i am wrong)

And there is a Embedded Python with numpy, but logic behind STDDEV(MDX) and numpy.std are different, apart of that Embedded python is a poorly produced gimmick and if i want to use python i would created entire analytics on it (i already did and now i need to transfer the concept into IRIS) 

Then there is STDDEV(SQL) method. It is very slow and thats it

And lastly we have %DeepSee.KPI. It is possible solution but our goal is to avoid it at all costs

'Community AI' tells me to ask here (if you think to ask it first, i've already did that)

Thank you in advance!

2 comentarios
Comentarios (2)1
Inicie sesión o regístrese para continuar
Artículo
· 22 nov, 2024 Lectura de 1 min

QuinielaML - Predicción de la 24ª jornada de la Quiniela

¡Por fin! Se acabaron esos fines de semana sin liga por competiciones internacionales de cartón-piedra, ya podemos volver a nuestra cálida y confortable cotidianeidad.

Hoy traémos las predicciones para las jornadas 14ª  de Primera División y 16ª de Segunda. Veamos la Quiniela de esta jornada:

Esta es la predicción para Primera División:

Y para Segunda:

Lo que nos deja la siguiente Quiniela:

Bueno, como véis es una Quiniela cuando menos, plausible. ¡Suerte a todos!

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 22 nov, 2024

SQLのInsertにおける、JDBCとIRIS直の挙動差異について。

こんにちは、皆さま。
業務でIRISを用いて開発を行っている者です。

IRISに直接Insert文を発行する時と、JDBCを経由してInsert文を発行する時とで、
挙動差異があるように見受けれれまいたので、何かご存知な方がいらっしゃれば教えてください。

次の様なテーブルがあります。

それに対してDBeaverとIRIS管理ポータルからInsertを実行します。

★DBeaver

 

★IRIS管理ポータル

 

この後実際に作成されたグローバルの情報を確認すると、
『VARCHAR型』で作成したカラムに数値をInsertした際に、
実データの型が異なっていることがわかります。

DBeaver(JDBC) ➡ 文字列で登録
IRIS直     ➡ 数値で登録

個人的には『VARCHAR型』に数値が入ること自体がおかしいので、
DBeaverの方がまし(ホントは型違反とかになってほしい)と思うのですが、
この差異が何で発生するのか、また回避する方法をご存じな方がいらっしゃれば情報共有頂きたいです。

 

また、そもそもIRISはRDBを使っても型チェックが曖昧になるものなのかも気になっています。
さすがに数値のカラムに文字列を入れようとすると怒られるのですが、
上記の様な場合にチェックの仕組みが働かないのには違和感がありました。

3 comentarios
Comentarios (3)1
Inicie sesión o regístrese para continuar