Add custom domain Multi shop

 Go to webstore and copy the name of webstore.



copy the ip address from webstore overview > properties section.


Go to Azure portal 
https://portal.azure.com/#@ism-egroup.com/resource/subscriptions/865d29cc-727d-4207-8aa3-c00ccdb7710a/resourceGroups/RG-DNS-SANA/providers/Microsoft.Network/dnszones/sanastores.net/overview

DNS 

sanastores.net (DNS zone)

sana-commerce.com


click record id
give copy name with id ( unique name )
TTL unit  set to second 
past the ip address.
before clicking Ok copy the name you give to record set.
then click ok.




Go to custom Doman 
give id and name.
past the copied recordset name from the azure portal.
upload certificate pw : abc123
click add domain.


Then shedule and Approve it.
Then custo domain will create.


1. 



2. it will combine URL saduntestsana(webstore name) + sanastore02(website name) + .sana-test-cloud.net(default site domain)




3. it will 




4, need to bind from azure side.

 



//-----------------------------------------

Copy content from another website

NO separate permission for this

it will create a new website, copy all the images, menu, languages, add-ons,

it will not copy customer-related data, baskets, orders, etc.



Verify on 

1. Lens > Network > ingress > search by webstoreId 

Newly added webstores are applied here.














2. Verify the License file

 old file should revoke and a new file should be added.


https://upgrade-community.sana-test-cloud.net/MySana/Licensepage.aspx



new Fastly changes when add sana-commerce.lk













How to use Blaze Meter with JMeter

1. Go to the Site that needs to be tested.

2. click blazer icon (need to install blazer Extention)-> click red record button




3. Navigate few pages and click stop
4. Click JMeter and save it.
click Blazer icon > save  (log with gmail)


5. open Jmetre File > Open (select saved file)

6.Thread Group > right click > Add > Listner > View Result in Table
C:\JMeter\bin\jmeter > double click




add traffic by increasing following 











Enable Open Vpn

1. Find the correct Pod
2. Before applying any changes check container count(green dot count)
eg: one container (one green dot) 





before add vpn

3. Upload the VPN file and give the schedule date and submit.

Sample VPN file can find here: vpn File on drive



4. Then approve the request then go to all web store 


after instraltion compleated/ active 
go to Lenc >  it will show folowing
  • 2 instrance 
  • Vpn section 




















Resource Allocation

 file:///C:/Users/s.kodagoda/Downloads/Resource%20Allocation2022.3.9.webm

customize / Saas > stagin prod 

internal trial > stagin demo





 first search on Workloads > Pods 

the webstore is correctly assign to pod.


Configuration > HPA (Horizontal Pod Autoscaler)



Then add traffic to the site  eg:testsadunadvancecustomized.sana-test-cloud.net

once increase  the traffic,  it will increase the Replica count 




Q1 CPU / Memory new values how to check on "Lens" software








Configure Lenc kubernetes , PLATFORM-DEV-STAGING-CLUSTER-WEU-01

 1. Go to  https://portal.azure.com/#home

then click > Kubernetes services


2. Find the cluster by filter or scroll. and click the item 

Click Connect button, Then it will load right panel




3. Open Power shell

type>   az login

if getting any error, install 


https://learn.microsoft.com/en-us/cli/azure/install-azure-cli

Installation: Make sure that the Azure CLI is installed on your machine. You can download it from the official Azure CLI website: Azure CLI.

past 1st line of azure right panel.

eg : az account set --subscription af8a792e-7f23-4184-ac8d-9d5e7e70faec

if got error doesn't exist error, Then Type>  az login.


Then past next >  az account set --subscription af8a792e-7f23-4184-ac8d-9d5e7e70faec


4.Then Go to Lens 
Login with your Gmail if logout.

File > add cluster  or 
Catalog > clusters



if details not load restart the app by below 




5. Then click the correct cluster > 
    it will open right panel > click connect button 
to connect we need to enable VPN (Global protect)


6. Go to Workload > Pods 
(change default to All Namespaces)


7.  to check HPA

Configuration > HPA (Horizontal pod autoscaling)



install 

PLATFORM-DEV-STAGING-CLUSTER-WEU-01

go to Azure Kuba service


download exe and past 

D:\home\AKSDeployment\kube  : kubelogin.exe

add to the environment variable 

close the lens and respond 


after reconnect Lens will show different error 

img2

copy url and past on browser.

enter code XXXX

reconnect again 

workload > cronjob

search the id 

it will show the cron jobs 


D:\KT Recordings\configer Platform dev staging with exe.webm